We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8847ea commit dcbd83bCopy full SHA for dcbd83b
src/store/fs/gc.rs
@@ -192,7 +192,6 @@ mod tests {
192
use std::{
193
io::{self},
194
path::Path,
195
- time::Duration,
196
};
197
198
use bao_tree::{io::EncodeError, ChunkNum};
@@ -300,7 +299,7 @@ mod tests {
300
299
let outboard_path = options.outboard_path(&bh);
301
let sizes_path = options.sizes_path(&bh);
302
let bitfield_path = options.bitfield_path(&bh);
303
- tokio::time::sleep(Duration::from_millis(100)).await; // allow for some time for the file to be written
+ store.wait_idle().await?;
304
assert!(data_path.exists());
305
assert!(outboard_path.exists());
306
assert!(sizes_path.exists());
0 commit comments