From 1b0170aae49ba2b2d091ba32a0404d89c594fc20 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 5 Sep 2023 10:20:37 +0200 Subject: [PATCH] integration-tests: Increase the number of expected events Signed-off-by: Alexandru Vasile --- .../src/full_client/client/unstable_rpcs.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testing/integration-tests/src/full_client/client/unstable_rpcs.rs b/testing/integration-tests/src/full_client/client/unstable_rpcs.rs index e70e14cc34..4c5fdddc8d 100644 --- a/testing/integration-tests/src/full_client/client/unstable_rpcs.rs +++ b/testing/integration-tests/src/full_client/client/unstable_rpcs.rs @@ -293,8 +293,10 @@ async fn transaction_unstable_submit_and_watch() { async fn next_operation_event( sub: &mut RpcSubscription>, ) -> FollowEvent { - // At most 5 retries. - for _ in 0..5 { + // Number of events to wait for the next operation event. + const NUM_EVENTS: usize = 10; + + for _ in 0..NUM_EVENTS { let event = sub.next().await.unwrap().unwrap(); match event { @@ -309,5 +311,5 @@ async fn next_operation_event( return event; } - panic!("Cannot find operation related event after 5 produced events"); + panic!("Cannot find operation related event after {NUM_EVENTS} produced events"); }