Skip to content

Commit 9f0cb41

Browse files
authored
fix(test): remove pause so the test has enough time to update values (#4528)
This PR removes the call to `tokio::time::pause` to give the test enough time to update the proper values so that it is no longer flaky
1 parent 3fe3975 commit 9f0cb41

File tree

1 file changed

+1
-2
lines changed
  • relay-server/src/services/buffer

1 file changed

+1
-2
lines changed

relay-server/src/services/buffer/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,6 @@ mod tests {
897897

898898
let addr = service.start_in(&TokioServiceSpawn);
899899
tokio::time::sleep(Duration::from_millis(200)).await;
900-
tokio::time::pause();
901900

902901
assert_eq!(addr.metrics.item_count.load(Ordering::Relaxed), 0);
903902

@@ -906,7 +905,7 @@ mod tests {
906905
addr.addr().send(EnvelopeBuffer::Push(envelope.clone()));
907906
}
908907

909-
tokio::time::sleep(Duration::from_millis(1000)).await;
908+
tokio::time::sleep(Duration::from_millis(100)).await;
910909

911910
assert_eq!(addr.metrics.item_count.load(Ordering::Relaxed), 10);
912911
}

0 commit comments

Comments
 (0)