integration-tests: Increase the number of expected events (#1152)

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-09-05 18:03:51 +02:00
committed by GitHub
parent 7c067aa603
commit c047d7f14e
@@ -293,8 +293,10 @@ async fn transaction_unstable_submit_and_watch() {
async fn next_operation_event<T: serde::de::DeserializeOwned>(
sub: &mut RpcSubscription<FollowEvent<T>>,
) -> FollowEvent<T> {
// 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<T: serde::de::DeserializeOwned>(
return event;
}
panic!("Cannot find operation related event after 5 produced events");
panic!("Cannot find operation related event after {NUM_EVENTS} produced events");
}