Skip to content

Commit

Permalink
Re-add timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser committed Aug 4, 2022
1 parent e01c8db commit d416977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions serial_test/src/code_lock.rs
Expand Up @@ -3,9 +3,10 @@ use dashmap::{try_result::TryResult, DashMap};
use lazy_static::lazy_static;
#[cfg(all(feature = "logging"))]
use log::debug;
use std::sync::{atomic::AtomicU32, Arc};
use std::time::Duration;
use std::time::Instant;
use std::{
sync::{atomic::AtomicU32, Arc},
time::{Duration, Instant},
};

pub(crate) struct UniqueReentrantMutex {
locks: Locks,
Expand Down
5 changes: 2 additions & 3 deletions serial_test_test/src/lib.rs
Expand Up @@ -107,12 +107,11 @@ mod tests {
use serial_test::{file_parallel, file_serial};

#[test]
#[serial()]
#[serial(timeout_key, timeout_ms = 60000)]
fn demo_timeout_with_key() {}

#[test]
#[serial()]
// #[serial(timeout_ms = 60000)]
#[serial(timeout_ms = 60000)]
fn demo_timeout() {}

#[test]
Expand Down

0 comments on commit d416977

Please sign in to comment.