Skip to content

Commit

Permalink
Another attempt to fix traced_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Oct 20, 2023
1 parent d5a33ee commit 42cf601
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ miette = { version = "5.10.0", features = ["fancy"] }
tracing-subscriber = "0.3.17"
tracing-test = { version = "0.2.4", features = [
"no-env-filter",
"llvm-cov-compat",
], branch = "fix_coverage", git = "https://github.com/Finomnis/tracing-test.git" }

# Tokio
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
test(no_crate_inject, attr(deny(warnings))),
test(attr(allow(dead_code)))
)]
// Required for test coverage
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

type BoxedError = Box<dyn std::error::Error + Send + Sync + 'static>;

Expand Down
3 changes: 3 additions & 0 deletions tests/cancel_on_shutdown.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Required for test coverage
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

use tokio::time::{sleep, Duration};
use tokio_graceful_shutdown::{
errors::CancelledByShutdown, FutureExt, SubsystemBuilder, SubsystemHandle, Toplevel,
Expand Down
3 changes: 3 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Required for test coverage
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

use anyhow::anyhow;
use tokio::time::{sleep, timeout, Duration};
use tokio_graceful_shutdown::{
Expand Down

0 comments on commit 42cf601

Please sign in to comment.