tests: check whether opendkim restarted in the last 48 hours

This commit is contained in:
missytake
2025-04-10 23:26:38 +02:00
parent 44ff6da5d2
commit 1fba4a3cdf

View File

@@ -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):