Keep payment assertion outside borrowed regression future
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user