aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-06-12 16:11:18 -0400
committerDeterminant <[email protected]>2020-06-12 16:11:18 -0400
commit37ac8fdadb79e041dfdd3038f30f48e828b280f8 (patch)
tree25d4d18ce5df04f67580a1905be4f3d955f29f33 /tests
parentc3c606a9f6754b115054569304ae612225da3ed3 (diff)
finish all async interface
Diffstat (limited to 'tests')
-rw-r--r--tests/common/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 5fc422f..47b04f1 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -171,7 +171,7 @@ where
}
}
- fn remove_file(&self, filename: &str) -> Result<(), ()> {
+ async fn remove_file(&self, filename: String) -> Result<(), ()> {
//println!("remove_file(filename={})", filename);
if self.fgen.next_fail() {
return Err(());
@@ -179,7 +179,7 @@ where
self.state
.borrow_mut()
.files
- .remove(filename)
+ .remove(&filename)
.ok_or(())
.and_then(|_| Ok(()))
}
@@ -581,7 +581,7 @@ impl PaintingSim {
}
if let Some((fin_rid, _)) = canvas.rand_paint(&mut rng) {
if let Some(rid) = fin_rid {
- wal.peel(&[rid])?
+ futures::executor::block_on(wal.peel(&[rid]))?
}
} else {
break;