Add tests for Instant::now()
and wasm32-unknown-unknown
#7360
Labels
A-tokio
Area: The main tokio crate
C-maintenance
Category: PRs that clean code up or issues documenting cleanup.
E-help-wanted
Call for participation: Help is requested to fix this issue.
M-time
Module: tokio/time
T-wasm
Topic: Web Assembly
I would like us to add tests to avoid cases such as #7319 in the future. We should have tests for cases such as:
feature="time"
and run code should not panic.feature="time"
and run code should not panic.feature="time"
and calltokio::time::{sleep,timeout}
should panic.Probably also some tests for what happens when you access time-based metrics. Should that panic? It doesn't right now - it just returns 0, but it probably should.
The text was updated successfully, but these errors were encountered: