Keep payment assertion outside borrowed regression future

This commit is contained in:
archipelago
2026-10-06 05:39:24 -04:00
parent 2fee0339cb
commit df7677d23f
+8 -6
View File
@@ -1136,13 +1136,15 @@ mod paid_read_order_tests {
None,
false,
|path, range, mime| prepare_content(dir.path(), path, range, mime),
|_, amount| async {
|_, amount| {
assert_eq!(amount, 10);
charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
fs::remove_file(dir.path().join("content/files/test.bin"))
.await
.unwrap();
true
async {
charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
fs::remove_file(dir.path().join("content/files/test.bin"))
.await
.unwrap();
true
}
},
)
.await