@@ -281,17 +281,14 @@ impl Into<prost_types::Timestamp> for Instant {
281281mod tests {
282282 use super :: Instant ;
283283 use crate :: { with_clock, Clock } ;
284- use serial_test:: serial;
285- use std:: sync:: LazyLock ;
284+ use std:: thread;
286285 use std:: time:: Duration ;
287- use std:: { sync:: Mutex , thread} ;
288286
289287 #[ test]
290288 #[ cfg_attr(
291289 all( target_arch = "wasm32" , target_os = "unknown" ) ,
292290 ignore = "WASM thread cannot sleep"
293291 ) ]
294- #[ serial]
295292 fn test_now ( ) {
296293 let t0 = Instant :: now ( ) ;
297294 thread:: sleep ( Duration :: from_millis ( 15 ) ) ;
@@ -310,7 +307,6 @@ mod tests {
310307 all( target_arch = "wasm32" , target_os = "unknown" ) ,
311308 ignore = "WASM thread cannot sleep"
312309 ) ]
313- #[ serial]
314310 fn test_recent ( ) {
315311 // Ensures that the recent global value is zero so that the fallback logic can kick in.
316312 crate :: set_recent ( Instant ( 0 ) ) ;
@@ -344,7 +340,6 @@ mod tests {
344340 all( target_arch = "wasm32" , target_os = "unknown" ) ,
345341 wasm_bindgen_test:: wasm_bindgen_test
346342 ) ]
347- #[ serial]
348343 fn test_mocking ( ) {
349344 // Ensures that the recent global value is zero so that the fallback logic can kick in.
350345 crate :: set_recent ( Instant ( 0 ) ) ;
@@ -377,7 +372,6 @@ mod tests {
377372 all( target_arch = "wasm32" , target_os = "unknown" ) ,
378373 wasm_bindgen_test:: wasm_bindgen_test
379374 ) ]
380- #[ serial]
381375 fn checked_arithmetic_u64_overflow ( ) {
382376 fn nanos_to_dur ( total_nanos : u128 ) -> Duration {
383377 let nanos_per_sec = Duration :: from_secs ( 1 ) . as_nanos ( ) ;
0 commit comments