mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
tests: check whether opendkim restarted in the last 48 hours
This commit is contained in:
@@ -60,7 +60,7 @@ class TestSSHExecutor:
|
|||||||
datestring = out.split("=")[1]
|
datestring = out.split("=")[1]
|
||||||
since_date = datetime.datetime.strptime(datestring, "%a %Y-%m-%d %H:%M:%S %Z")
|
since_date = datetime.datetime.strptime(datestring, "%a %Y-%m-%d %H:%M:%S %Z")
|
||||||
now = datetime.datetime.now(since_date.tzinfo)
|
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):
|
def test_remote(remote, imap_or_smtp):
|
||||||
|
|||||||
Reference in New Issue
Block a user