Skip to content

Commit bdd1ae1

Browse files
committed
Stabilize address lookup test for async writes
1 parent a6aacb3 commit bdd1ae1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/render.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,12 @@ mod tests {
928928
.expect("ingest event with a tag");
929929

930930
let sub_id = ndb.subscribe(&[wait_filter, wait_filter_2]).expect("sub");
931-
let _r = ndb.wait_for_notes(sub_id, 2).await;
931+
let _ = ndb
932+
.wait_for_notes(sub_id, 2)
933+
.await
934+
.expect("wait for note ingestion to complete");
935+
936+
tokio::time::sleep(Duration::from_millis(50)).await;
932937

933938
{
934939
let txn = Transaction::new(&ndb).expect("transaction for d-tag lookup");

0 commit comments

Comments
 (0)