From 0724647197d26b221dc2b090c407a07401962a68 Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 7 Jul 2017 19:09:28 +0200 Subject: Fix infinite loop in tests. whoops. --- src/mailman_pgp/runners/tests/test_incoming.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mailman_pgp') diff --git a/src/mailman_pgp/runners/tests/test_incoming.py b/src/mailman_pgp/runners/tests/test_incoming.py index d06bb2b..0a37b05 100644 --- a/src/mailman_pgp/runners/tests/test_incoming.py +++ b/src/mailman_pgp/runners/tests/test_incoming.py @@ -82,7 +82,7 @@ To: ordinary@example.com create_list('no-key@example.com', style_name='pgp-default') msg = mfs("""\ -From: anne@example.com +From: RSA-1024b@example.org To: no-key@example.com Some text. @@ -90,10 +90,11 @@ Some text. wrapped = PGPWrapper(msg) encrypted = wrapped.encrypt(self.pgp_list.pubkey) - msgdata = dict(listid='no-key.example.com') mm_config.switchboards['in'].enqueue(encrypted, msgdata) - self.runner.run() + runner = make_testable_runner(IncomingRunner, 'in', + lambda runner: True) + runner.run() # Expect the message still there. Waiting for list key. get_queue_messages('in', expected_count=1) -- cgit v1.2.3-70-g09d2