Skip to content

Commit

Permalink
fix(tests): enable tracing for the tests that hangs on CI only
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Jan 25, 2025
1 parent 7760cf2 commit 59c5751
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
image: postgres:latest
env:
POSTGRES_HOST_AUTH_METHOD: trust
RUST_LOG: debug
ports:
- 5432:5432
steps:
Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
- name: Test (default features)
timeout-minutes: 6
run: cargo test
run: cargo test -- --nocapture

- name: Build (default features)
run: cargo build --release
Expand Down
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ uuid = "1.12.1"
httpmock = "0.7.0"
insta = "1.42.0"
toml = "0.8.19"
tracing-test = "0.2.5"

[features]
default = [
Expand Down
2 changes: 2 additions & 0 deletions src/scheduler/scheduler_jobs/trackers_run_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ mod tests {
use sqlx::PgPool;
use std::{ops::Add, sync::Arc, time::Duration};
use time::OffsetDateTime;
use tracing_test::traced_test;
use uuid::uuid;

#[sqlx::test]
Expand Down Expand Up @@ -1468,6 +1469,7 @@ mod tests {
}

#[sqlx::test]
#[traced_test]
async fn can_schedule_retries_if_request_fails(pool: PgPool) -> anyhow::Result<()> {
let mut config = mock_config()?;
config.smtp = config.smtp.map(|config| SmtpConfig {
Expand Down

0 comments on commit 59c5751

Please sign in to comment.