Skip to content

Commit

Permalink
give eviction more time
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Dec 4, 2024
1 parent ef0f0da commit 9d503d2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions iroh-dns-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,14 @@ mod tests {
.await?;

tokio::time::sleep(Duration::from_secs(1)).await;
let entry = store.get_signed_packet(&key).await?;
assert!(entry.is_none());
Ok(())
for _ in 0..10 {
let entry = store.get_signed_packet(&key).await?;
if entry.is_none() {
return Ok(());
}
tokio::time::sleep(Duration::from_secs(1)).await;
}
panic!("store did not evict packet");
}

#[tokio::test]
Expand Down

0 comments on commit 9d503d2

Please sign in to comment.