diff options
author | tom barrett <spalf0@gmail.com> | 2019-04-02 04:53:54 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-04-02 04:53:54 -0500 |
commit | 9e1cc5ab923492570a84ac35fe573d22c051f86b (patch) | |
tree | 8a4371560b0051920aef2c74f0d91636377b147f /tests | |
parent | 810c77ba30c65215c2d5e4b6f8a73f3b73e2b152 (diff) |
added last_modified to database entry
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 4c5c96b..6dc34b8 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -6,7 +6,7 @@ extern crate space; mod tests { use std::collections::HashMap; use std::thread::sleep; - use std::time::Duration; + use std::time::{Duration, SystemTime}; use diesel::pg::PgConnection; use diesel::prelude::*; @@ -538,7 +538,7 @@ mod tests { let mut mass = Mass::new_astroid(); diesel::insert_into(db_masses) - .values(&mass.to_mass_entry(name.clone())) + .values(&mass.to_mass_entry(name.clone(), SystemTime::now())) .execute(&connection) .expect("Cannot insert"); @@ -559,7 +559,7 @@ mod tests { mass.process(&mut HashMap::new()); diesel::update(db_masses) - .set(mass.to_mass_entry(name.clone())) + .set(mass.to_mass_entry(name.clone(), SystemTime::now())) .execute(&connection) .expect("Cannot update"); |