From bd1ee67552b1fbbdacda9116b3d9ef6e07edd82d Mon Sep 17 00:00:00 2001 From: Adrian Herrmann Date: Wed, 3 Jan 2024 12:10:43 +0100 Subject: QtAsyncio: Shorten test durations Most QtAsyncio tests are slow because they sleeps. Shorten their durations across the board by using shorter sleeps. E.g., this reduces the duration of the queue test from about 16 seconds to less than 6. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I5072bb71fbe28509427fb92390584ec1a4d1a128 Reviewed-by: Shyamnath Premnadh --- sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py') diff --git a/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py b/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py index 8a7eaf2ce..5b52db239 100644 --- a/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py +++ b/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py @@ -36,7 +36,7 @@ class QAsyncioTestCaseThreadsafe(unittest.TestCase): task = asyncio.create_task(self.loop_event.wait()) # The timeout is necessary because the loop will hang for the non-threadsafe case. - done, pending = await asyncio.wait([task], timeout=3) + done, pending = await asyncio.wait([task], timeout=2) thread.join() -- cgit v1.2.3