Skip to content

Commit

Permalink
fix: bump max wait time for flakey cyclotron test, add RUST_BACKTRACE…
Browse files Browse the repository at this point in the history
…=1 (#24516)
  • Loading branch information
bretthoerner authored Aug 22, 2024
1 parent 8ca6403 commit 85c6235
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions rust/cyclotron-fetch/tests/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 85c6235

Please sign in to comment.