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, 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);
charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst); async {
fs::remove_file(dir.path().join("content/files/test.bin")) charged.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
.await fs::remove_file(dir.path().join("content/files/test.bin"))
.unwrap(); .await
true .unwrap();
true
}
}, },
) )
.await .await