Skip to content

Commit

Permalink
Change step function to drain events
Browse files Browse the repository at this point in the history
This fixes the tests, but there is still an error in the logs:

2024-05-13T07:20:51.152002Z ERROR iroh::node::builder: Error getting doc hashes: sending to iroh_docs actor failed
  • Loading branch information
rklaehn committed May 13, 2024
1 parent 08baee8 commit cd7ec20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iroh/tests/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ async fn gc_test_node() -> (
}

async fn step(evs: &flume::Receiver<()>) {
evs.recv_async().await.unwrap();
// drain the event queue, we want a new GC
while evs.try_recv().is_ok() {}
// wait for several GC cycles
for _ in 0..3 {
evs.recv_async().await.unwrap();
}
}

/// Test the absolute basics of gc, temp tags and tags for blobs.
Expand Down

0 comments on commit cd7ec20

Please sign in to comment.