mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-29 04:37:39 +00:00
Add small delays in test_pipe_protocol tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user