Skip to content

Commit

Permalink
Merge pull request #10 from aochagavia/fix-flakiness
Browse files Browse the repository at this point in the history
Increase tokio timeout to fix flakiness
  • Loading branch information
aochagavia authored Nov 8, 2023
2 parents 549584a + 4005677 commit a2f90b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ci-bench-runner/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async fn test_issue_comment_happy_path() {
.await;

// Wait for our mock endpoints to have been called
tokio::time::timeout(Duration::from_secs(2), update_status.wait_until_satisfied())
tokio::time::timeout(Duration::from_secs(5), update_status.wait_until_satisfied())
.await
.ok();

Expand Down Expand Up @@ -270,7 +270,7 @@ async fn test_pr_opened_happy_path_with_comment_reuse() {
.await;

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

Expand All @@ -288,7 +288,7 @@ async fn test_pr_opened_happy_path_with_comment_reuse() {
.await;

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

Expand Down Expand Up @@ -326,7 +326,7 @@ async fn test_pr_opened_happy_path_with_failed_comment_reuse() {
.await;

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

Expand Down Expand Up @@ -360,7 +360,7 @@ async fn test_pr_synchronize_happy_path() {
.await;

// Wait for our mock endpoints to have been called
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
.await
.ok();

Expand Down Expand Up @@ -412,7 +412,7 @@ async fn test_pr_synchronize_cached() {
.await;

// Wait for our mock endpoints to have been called
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
.await
.ok();

Expand Down Expand Up @@ -442,7 +442,7 @@ async fn test_pr_review_happy_path() {
.await;

// Wait for our mock endpoints to have been called
tokio::time::timeout(Duration::from_secs(2), post_status.wait_until_satisfied())
tokio::time::timeout(Duration::from_secs(5), post_status.wait_until_satisfied())
.await
.ok();

Expand Down Expand Up @@ -863,7 +863,7 @@ impl TestServer {
tokio::spawn(server);

// Sanity check: ensure the server retrieved the app installation and an auth token
tokio::time::timeout(Duration::from_secs(1), mock_get_app.wait_until_satisfied())
tokio::time::timeout(Duration::from_secs(5), mock_get_app.wait_until_satisfied())
.await
.unwrap();
tokio::time::timeout(
Expand Down

0 comments on commit a2f90b8

Please sign in to comment.