From 37ac8fdadb79e041dfdd3038f30f48e828b280f8 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 12 Jun 2020 16:11:18 -0400 Subject: finish all async interface --- tests/common/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3-70-g09d2