From 85c6235d2ee62c17200f8ea657d96d94147479d4 Mon Sep 17 00:00:00 2001 From: Brett Hoerner Date: Thu, 22 Aug 2024 00:14:52 -0600 Subject: [PATCH] fix: bump max wait time for flakey cyclotron test, add RUST_BACKTRACE=1 (#24516) --- .github/workflows/rust.yml | 2 +- rust/cyclotron-fetch/tests/fetch.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 43afd01f92532..b12b2ecdcff86 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -168,7 +168,7 @@ jobs: if: needs.changes.outputs.rust == 'true' run: | echo "Starting cargo test" - cargo test --all-features ${{ matrix.package == 'feature-flags' && '--package feature-flags' || '--workspace --exclude feature-flags' }} + RUST_BACKTRACE=1 cargo test --all-features ${{ matrix.package == 'feature-flags' && '--package feature-flags' || '--workspace --exclude feature-flags' }} echo "Cargo test completed" linting: diff --git a/rust/cyclotron-fetch/tests/fetch.rs b/rust/cyclotron-fetch/tests/fetch.rs index 5d148a8f7d895..b8ca6a61aeb0d 100644 --- a/rust/cyclotron-fetch/tests/fetch.rs +++ b/rust/cyclotron-fetch/tests/fetch.rs @@ -69,11 +69,11 @@ pub async fn test_returns_failure_after_retries(db: PgPool) { // Tick twice for retry let started = tick(context.clone()).await.unwrap(); assert_eq!(started, 1); - wait_on_no_running(&db, Duration::milliseconds(100)).await; + wait_on_no_running(&db, Duration::milliseconds(500)).await; make_immediately_available(&db).await; let started = tick(context.clone()).await.unwrap(); assert_eq!(started, 1); - wait_on_no_running(&db, Duration::milliseconds(100)).await; + wait_on_no_running(&db, Duration::milliseconds(500)).await; let returned = wait_on_return(&return_worker, 1, false).await.unwrap();