summaryrefslogtreecommitdiff
path: root/crates/tor-dirmgr/src/bootstrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-dirmgr/src/bootstrap.rs')
-rw-r--r--crates/tor-dirmgr/src/bootstrap.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/tor-dirmgr/src/bootstrap.rs b/crates/tor-dirmgr/src/bootstrap.rs
index f6a38332f..68ccfdd68 100644
--- a/crates/tor-dirmgr/src/bootstrap.rs
+++ b/crates/tor-dirmgr/src/bootstrap.rs
@@ -748,10 +748,11 @@ mod test {
use tor_dircommon::retry::DownloadSchedule;
use tor_netdoc::doc::microdesc::MdDigest;
use tor_rtcompat::SleepProvider;
+ use web_time_compat::SystemTimeExt;
#[test]
fn week() {
- let now = SystemTime::now();
+ let now = SystemTime::get();
let one_day = Duration::new(86400, 0);
assert_eq!(no_more_than_a_week_from(now, None), now + one_day * 7);