mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 05:18:04 +00:00
introduce remotelog fixture for capturing systemd-unit logs
This commit is contained in:
@@ -19,7 +19,7 @@ class TestEndToEndDeltaChat:
|
||||
assert msg2.text == "message0"
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_exceed_quota(self, cmfactory, lp, tmpdir, dovelogreader):
|
||||
def test_exceed_quota(self, cmfactory, lp, tmpdir, remotelog):
|
||||
"""This is a very slow test as it needs to upload >100MB of mail data
|
||||
before quota is exceeded, and thus depends on the speed of the upload.
|
||||
"""
|
||||
@@ -48,8 +48,7 @@ class TestEndToEndDeltaChat:
|
||||
|
||||
addr = ac2.get_config("addr").lower()
|
||||
saved_ok = 0
|
||||
for line in dovelogreader():
|
||||
line = line.decode().lower().strip()
|
||||
for line in remotelog.iter("dovecot"):
|
||||
if addr not in line:
|
||||
# print(line)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user