File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ use dashmap::{try_result::TryResult, DashMap};
3
3
use lazy_static:: lazy_static;
4
4
#[ cfg( all( feature = "logging" ) ) ]
5
5
use log:: debug;
6
- use std:: sync:: { atomic:: AtomicU32 , Arc } ;
7
- use std:: time:: Duration ;
8
- use std:: time:: Instant ;
6
+ use std:: {
7
+ sync:: { atomic:: AtomicU32 , Arc } ,
8
+ time:: { Duration , Instant } ,
9
+ } ;
9
10
10
11
pub ( crate ) struct UniqueReentrantMutex {
11
12
locks : Locks ,
Original file line number Diff line number Diff line change @@ -107,12 +107,11 @@ mod tests {
107
107
use serial_test:: { file_parallel, file_serial} ;
108
108
109
109
#[ test]
110
- #[ serial( ) ]
110
+ #[ serial( timeout_key , timeout_ms = 60000 ) ]
111
111
fn demo_timeout_with_key ( ) { }
112
112
113
113
#[ test]
114
- #[ serial( ) ]
115
- // #[serial(timeout_ms = 60000)]
114
+ #[ serial( timeout_ms = 60000 ) ]
116
115
fn demo_timeout ( ) { }
117
116
118
117
#[ test]
You can’t perform that action at this time.
0 commit comments