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
+3 -1
View File
@@ -1136,13 +1136,15 @@ mod paid_read_order_tests {
None, None,
false, false,
|path, range, mime| prepare_content(dir.path(), path, range, mime), |path, range, mime| prepare_content(dir.path(), path, range, mime),
|_, amount| async { |_, amount| {
assert_eq!(amount, 10); assert_eq!(amount, 10);
async {
charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst); charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
fs::remove_file(dir.path().join("content/files/test.bin")) fs::remove_file(dir.path().join("content/files/test.bin"))
.await .await
.unwrap(); .unwrap();
true true
}
}, },
) )
.await .await