Sha256: 76549719f16e9cbdd9a84b9d97929ed7c8ca95b8d4d715608eb99f950cdda7a3

Contents?: true

Size: 362 Bytes

Versions: 19

Compression:

Stored size: 362 Bytes

Contents

#![cfg(all(feature = "full"))]

use tokio::time::{Duration, Instant};

#[tokio::test(start_paused = true)]
async fn test_start_paused() {
    let now = Instant::now();

    // Pause a few times w/ std sleep and ensure `now` stays the same
    for _ in 0..5 {
        std::thread::sleep(Duration::from_millis(1));
        assert_eq!(now, Instant::now());
    }
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-17.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/rt_time_start_paused.rs
wasmtime-17.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/rt_time_start_paused.rs
wasmtime-16.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/rt_time_start_paused.rs
wasmtime-15.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/rt_time_start_paused.rs
wasmtime-15.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/rt_time_start_paused.rs
wasmtime-14.0.4 ./ext/cargo-vendor/tokio-1.33.0/tests/rt_time_start_paused.rs
wasmtime-14.0.3 ./ext/cargo-vendor/tokio-1.33.0/tests/rt_time_start_paused.rs
wasmtime-14.0.1 ./ext/cargo-vendor/tokio-1.33.0/tests/rt_time_start_paused.rs
wasmtime-14.0.0 ./ext/cargo-vendor/tokio-1.33.0/tests/rt_time_start_paused.rs
wasmtime-13.0.0 ./ext/cargo-vendor/tokio-1.32.0/tests/rt_time_start_paused.rs
wasmtime-12.0.1 ./ext/cargo-vendor/tokio-1.32.0/tests/rt_time_start_paused.rs
wasmtime-12.0.0 ./ext/cargo-vendor/tokio-1.32.0/tests/rt_time_start_paused.rs
wasmtime-11.0.0 ./ext/cargo-vendor/tokio-1.32.0/tests/rt_time_start_paused.rs
wasmtime-10.0.1 ./ext/cargo-vendor/tokio-1.30.0/tests/rt_time_start_paused.rs
wasmtime-10.0.0 ./ext/cargo-vendor/tokio-1.30.0/tests/rt_time_start_paused.rs
wasmtime-9.0.4 ./ext/cargo-vendor/tokio-1.30.0/tests/rt_time_start_paused.rs
wasmtime-9.0.1 ./ext/cargo-vendor/tokio-1.28.1/tests/rt_time_start_paused.rs
wasmtime-8.0.0 ./ext/cargo-vendor/tokio-1.27.0/tests/rt_time_start_paused.rs
wasmtime-7.0.0 ./ext/cargo-vendor/tokio-1.27.0/tests/rt_time_start_paused.rs