Skip to content

Commit e55d0cb

Browse files
committed
test: let block_gaps_do_not_affect_number_of_events_streamed scanner catchup to live before emitting
1 parent 74b0e8c commit e55d0cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sync/from_latest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ async fn block_gaps_do_not_affect_number_of_events_streamed() -> anyhow::Result<
202202
);
203203
let mut stream = assert_empty!(stream);
204204

205+
// give scanner time to subscribe to live events
206+
sleep(Duration::from_millis(10)).await;
205207
// Immediately produce a new live event in a new block
206208
contract.increase().send().await?.watch().await?;
207209

0 commit comments

Comments
 (0)