summaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-guardmgr/src/util.rs')
-rw-r--r--crates/tor-guardmgr/src/util.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/tor-guardmgr/src/util.rs b/crates/tor-guardmgr/src/util.rs
index bc27314fd..eea47b091 100644
--- a/crates/tor-guardmgr/src/util.rs
+++ b/crates/tor-guardmgr/src/util.rs
@@ -77,10 +77,11 @@ mod test {
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
use super::*;
use tor_basic_utils::test_rng::testing_rng;
+ use web_time_compat::SystemTimeExt;
#[test]
fn test_randomize_time() {
- let now = SystemTime::now();
+ let now = SystemTime::get();
let one_hour = humantime::parse_duration("1hr").unwrap();
let ten_sec = humantime::parse_duration("10s").unwrap();
let mut rng = testing_rng();