fix: updated_at in tests

This commit is contained in:
Sebastian Pravda 2022-12-21 16:13:45 +01:00
parent 4cf408ab2f
commit 0b1c93c336
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -48,6 +48,7 @@ mod tests {
ip_address: Set("10.10.10.10".to_string()),
created_at: Set(chrono::offset::Local::now().naive_local()),
expires_at: Set(chrono::offset::Local::now().naive_local()),
updated_at: Set(chrono::offset::Local::now().naive_local()),
..Default::default()
}
.insert(&db)
@ -85,6 +86,7 @@ mod tests {
ip_address: Set("10.10.10.10".to_string()),
created_at: Set(chrono::offset::Local::now().naive_local()),
expires_at: Set(chrono::offset::Local::now().naive_local()),
updated_at: Set(chrono::offset::Local::now().naive_local()),
..Default::default()
}
.insert(&db)
@ -114,6 +116,7 @@ mod tests {
ip_address: Set("10.10.10.10".to_string()),
created_at: Set(chrono::offset::Local::now().naive_local()),
expires_at: Set(chrono::offset::Local::now().naive_local()),
updated_at: Set(chrono::offset::Local::now().naive_local()),
..Default::default()
}
.insert(&db)