windows pipe improved

This commit is contained in:
skelly37
2022-06-23 15:18:18 +02:00
parent cb714d7cf6
commit 82585445ae
2 changed files with 3 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ class TestPipe(PicardTestCase):
__pool = concurrent.futures.ThreadPoolExecutor()
for messages in to_send:
__pool.submit(pipe_writer, pipe_writer_handler, messages, END_OF_SEQUENCE)
plistener = __pool.submit(pipe_listener, pipe_listener_handler, END_OF_SEQUENCE)
__pool.submit(pipe_writer, pipe_writer_handler, messages, END_OF_SEQUENCE)
self.assertEqual(plistener.result(timeout=4), messages,
"Data is sent and read correctly")