From a87832e4f4e9bbeb2e14a5fcc6102b84141663b4 Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 16 Nov 2023 15:36:38 +0100 Subject: [PATCH] update tests to use current date --- src/tera/log.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tera/log.rs b/src/tera/log.rs index 7d7c0ca..ea006e7 100644 --- a/src/tera/log.rs +++ b/src/tera/log.rs @@ -701,7 +701,7 @@ mod test { let req = client .post(format!("/log/{log_id}")) .header(ContentType::Form) - .body(format!("destination=Ottensheim&distance_in_km=25&shipmaster={shipmaster_id}&steering_person={shipmaster_id}&departure={0}T10:00&arrival=1990-01-01T12:00&rowers[]={shipmaster_id}", current_date)); + .body(format!("destination=Ottensheim&distance_in_km=25&shipmaster={shipmaster_id}&steering_person={shipmaster_id}&departure={0}T10:00&arrival={0}T12:00&rowers[]={shipmaster_id}", current_date)); let response = req.dispatch().await; assert_eq!(response.status(), Status::SeeOther);