From 1fba4a3cdf86efd225d9adbc7fdbcc75fcfb1fe7 Mon Sep 17 00:00:00 2001 From: missytake Date: Thu, 10 Apr 2025 23:26:38 +0200 Subject: [PATCH] tests: check whether opendkim restarted in the last 48 hours --- cmdeploy/src/cmdeploy/tests/online/test_1_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py b/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py index a1dd0bfb..c1bb4bb9 100644 --- a/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py +++ b/cmdeploy/src/cmdeploy/tests/online/test_1_basic.py @@ -60,7 +60,7 @@ class TestSSHExecutor: datestring = out.split("=")[1] since_date = datetime.datetime.strptime(datestring, "%a %Y-%m-%d %H:%M:%S %Z") now = datetime.datetime.now(since_date.tzinfo) - assert (now - since_date).total_seconds() < 60 * 60 * 24 + assert (now - since_date).total_seconds() < 60 * 60 * 48 def test_remote(remote, imap_or_smtp):