Use parse_rfc3339() in the tor-rtmock crate
This commit is contained in:
parent
fa5a417fc9
commit
11958c9241
|
@ -4133,6 +4133,7 @@ dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"futures",
|
"futures",
|
||||||
"futures-await-test",
|
"futures-await-test",
|
||||||
|
"humantime 2.1.0",
|
||||||
"pin-project",
|
"pin-project",
|
||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
|
|
@ -14,6 +14,7 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = "0.1.2"
|
async-trait = "0.1.2"
|
||||||
futures = "0.3.14"
|
futures = "0.3.14"
|
||||||
|
humantime = "2"
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
tor-rtcompat = { version = "0.8.0", path = "../tor-rtcompat" }
|
tor-rtcompat = { version = "0.8.0", path = "../tor-rtcompat" }
|
||||||
|
|
|
@ -60,8 +60,8 @@ fn timeouts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn start() -> SystemTime {
|
fn start() -> SystemTime {
|
||||||
// Yes this is a homestuck reference
|
use humantime::parse_rfc3339;
|
||||||
SystemTime::UNIX_EPOCH + Duration::from_secs(1239657180)
|
parse_rfc3339("2009-04-13T09:13:00Z").unwrap()
|
||||||
}
|
}
|
||||||
const ONE_DAY: Duration = Duration::from_secs(86400);
|
const ONE_DAY: Duration = Duration::from_secs(86400);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue