Env::now implemented in tests
@@ -12,6 +12,7 @@ mod tests {
use crate::state_types::*;
use crate::types::addons::*;
use crate::types::*;
+ use chrono::{DateTime, Utc};
use futures::future::lazy;
use futures::{future, Future};
use serde::de::DeserializeOwned;
@@ -551,5 +552,8 @@ mod tests {
};
Box::new(future::ok(()))
}
+ fn now() -> DateTime<Utc> {
+ Utc::now()
+ }
}
}
