Skip to content

Commit a2f90b8

Browse files
authored
Merge pull request #10 from aochagavia/fix-flakiness
Increase tokio timeout to fix flakiness
2 parents 549584a + 4005677 commit a2f90b8

File tree

1 file changed

+8
-8
lines changed
  • ci-bench-runner/src/test

1 file changed

+8
-8
lines changed

ci-bench-runner/src/test/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async fn test_issue_comment_happy_path() {
240240
.await;
241241

242242
// Wait for our mock endpoints to have been called
243-
tokio::time::timeout(Duration::from_secs(2), update_status.wait_until_satisfied())
243+
tokio::time::timeout(Duration::from_secs(5), update_status.wait_until_satisfied())
244244
.await
245245
.ok();
246246

@@ -270,7 +270,7 @@ async fn test_pr_opened_happy_path_with_comment_reuse() {
270270
.await;
271271

272272
// Wait for our post status endpoint to have been called
273-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
273+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
274274
.await
275275
.ok();
276276

@@ -288,7 +288,7 @@ async fn test_pr_opened_happy_path_with_comment_reuse() {
288288
.await;
289289

290290
// Wait for our post status endpoint to have been called
291-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
291+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
292292
.await
293293
.ok();
294294

@@ -326,7 +326,7 @@ async fn test_pr_opened_happy_path_with_failed_comment_reuse() {
326326
.await;
327327

328328
// Wait for our post status endpoint to have been called
329-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
329+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
330330
.await
331331
.unwrap();
332332

@@ -360,7 +360,7 @@ async fn test_pr_synchronize_happy_path() {
360360
.await;
361361

362362
// Wait for our mock endpoints to have been called
363-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
363+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
364364
.await
365365
.ok();
366366

@@ -412,7 +412,7 @@ async fn test_pr_synchronize_cached() {
412412
.await;
413413

414414
// Wait for our mock endpoints to have been called
415-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
415+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
416416
.await
417417
.ok();
418418

@@ -442,7 +442,7 @@ async fn test_pr_review_happy_path() {
442442
.await;
443443

444444
// Wait for our mock endpoints to have been called
445-
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
445+
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
446446
.await
447447
.ok();
448448

@@ -863,7 +863,7 @@ impl TestServer {
863863
tokio::spawn(server);
864864

865865
// Sanity check: ensure the server retrieved the app installation and an auth token
866-
tokio::time::timeout(Duration::from_secs(1), mock_get_app.wait_until_satisfied())
866+
tokio::time::timeout(Duration::from_secs(5), mock_get_app.wait_until_satisfied())
867867
.await
868868
.unwrap();
869869
tokio::time::timeout(

0 commit comments

Comments
 (0)