File: 0001-Multiplies-by-5-the-delay-before-the-testing-loop-en.patch

package info (click to toggle)
python-aiosmtpd 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 464 kB
  • sloc: python: 3,254; makefile: 35
file content (26 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <peb@debian.org>
Date: Tue, 9 Oct 2018 09:18:18 +0200
Subject: Multiplies by 5 the delay before the testing loop ends

I've seen some issues in the reproducibility tests due to the fact that
this loops ends too soon regarding the performance of the containers
building the package and running the tests.

Let's test a x5 delay to see if it fixes the issue.
---
 aiosmtpd/tests/test_main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aiosmtpd/tests/test_main.py b/aiosmtpd/tests/test_main.py
index a821c6a..ee9a5c0 100644
--- a/aiosmtpd/tests/test_main.py
+++ b/aiosmtpd/tests/test_main.py
@@ -52,7 +52,7 @@ class TestMain(unittest.TestCase):
         # information to know for sure.
         default_loop = asyncio.get_event_loop()
         loop = asyncio.new_event_loop()
-        loop.call_later(0.1, loop.stop)
+        loop.call_later(0.5, loop.stop)
         self.resources.callback(asyncio.set_event_loop, default_loop)
         asyncio.set_event_loop(loop)
         self.addCleanup(self.resources.close)