Skip to content

Commit 99af92a

Browse files
committed
undo serial_test
1 parent f6491e1 commit 99af92a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ wasi = "0.11"
6161
[dev-dependencies]
6262
average = "0.14"
6363
criterion = "=0.3.3"
64-
serial_test = "3.2"
6564

6665
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
6766
wasm-bindgen-test = "0.3"

src/instant.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,17 +281,14 @@ impl Into<prost_types::Timestamp> for Instant {
281281
mod 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

Comments
 (0)