From 0155d93622ef91c3f5fb7385d2a1b5d1a59ee204 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 27 Mar 2024 16:56:33 +0100 Subject: [PATCH] test: Remove flaky time check from test_list_from() the rendered time output seems different on different systems and timezomes, eg. on my local machine, it is `Sent: 2024.03.20 10:00:01 ` and not `Sent: 2024.03.20 09:00:01`, maybe because of winter/summer time, idk. as the gist of the test is to check the name, however, i just removed the whole time check. --- src/receive_imf/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/receive_imf/tests.rs b/src/receive_imf/tests.rs index d4f19f71b..ef273df3f 100644 --- a/src/receive_imf/tests.rs +++ b/src/receive_imf/tests.rs @@ -4408,7 +4408,7 @@ async fn test_list_from() -> Result<()> { "clubinfo@donotreply.oeamtc.at" ); let info = msg.id.get_info(t).await?; - assert!(info.contains("Sent: 2024.03.20 09:00:01 by ~ÖAMTC (clubinfo@donotreply.oeamtc.at)")); + assert!(info.contains(" by ~ÖAMTC (clubinfo@donotreply.oeamtc.at)")); Ok(()) }