diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-01-03 12:10:43 +0100 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-01-07 20:29:03 +0100 |
| commit | bd1ee67552b1fbbdacda9116b3d9ef6e07edd82d (patch) | |
| tree | 0e7824bb272cc253098904697a58770f5a18f8ba /sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py | |
| parent | 8c9ad6eacc66065130b226ba486749d0eae48226 (diff) | |
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 <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py')
| -rw-r--r-- | sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py b/sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py index 60ec2f064..07a126644 100644 --- a/sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py +++ b/sources/pyside6/tests/QtAsyncio/qasyncio_test_time.py @@ -33,7 +33,7 @@ class QAsyncioTestCaseTime(unittest.TestCase): asyncio.set_event_loop_policy(QAsyncioEventLoopPolicy()) loop = asyncio.new_event_loop() - end_time = loop.time() + 5.0 + end_time = loop.time() + 3.0 loop.call_soon(self.display_date, end_time, loop) try: |
