From 165cc8519dec75123452794fcb700fe789ec0215 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Wed, 16 Aug 2023 16:55:34 +0200 Subject: [PATCH] Add small delays in test_pipe_protocol tests --- test/test_util_pipe.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_util_pipe.py b/test/test_util_pipe.py index 6941b08a5..8e3b3ab11 100644 --- a/test/test_util_pipe.py +++ b/test/test_util_pipe.py @@ -21,6 +21,7 @@ import concurrent.futures from platform import python_version +import time import uuid from test.picardtestcase import PicardTestCase @@ -64,6 +65,7 @@ class TestPipe(PicardTestCase): pipe_handler = pipe.Pipe(self.NAME, self.VERSION) try: plistener = __pool.submit(pipe_listener, pipe_handler) + time.sleep(1) res = "" # handle the write/read processes @@ -76,5 +78,6 @@ class TestPipe(PicardTestCase): self.assertEqual(res, message, "Data is sent and read correctly") finally: + time.sleep(1) pipe_handler.stop() __pool.shutdown()