From 9e1cc5ab923492570a84ac35fe573d22c051f86b Mon Sep 17 00:00:00 2001 From: tom barrett Date: Tue, 2 Apr 2019 04:53:54 -0500 Subject: added last_modified to database entry --- tests/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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"); -- cgit v1.2.3