You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/06/02 12:26:03 UTC
[incubator-ponymail-unit-tests] branch master updated: only use
mock a-at for medium generator
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git
The following commit(s) were added to refs/heads/master by this push:
new bae0927 only use mock a-at for medium generator
bae0927 is described below
commit bae0927715102c9b385ff04e304f195d1a5c52a2
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jun 2 14:25:49 2021 +0200
only use mock a-at for medium generator
otherwise it breaks full message hashes
---
tests/test-generators.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test-generators.py b/tests/test-generators.py
index 6737ca4..5c871b0 100755
--- a/tests/test-generators.py
+++ b/tests/test-generators.py
@@ -124,8 +124,8 @@ def run_tests(args):
key = test['index']
message_raw = _raw(args, mbox, key)
message = mbox.get(key)
- # Mock archived-at
- if 'MOCK_AAT' in _env:
+ # Mock archived-at for slightly broken medium generators
+ if 'MOCK_AAT' in _env and gen_type == 'medium':
mock_aat = email.utils.formatdate(int(_env['MOCK_AAT']), False)
try:
message.replace_header('archived-at', mock_aat)