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_chain.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_chain.py')
| -rw-r--r-- | sources/pyside6/tests/QtAsyncio/qasyncio_test_chain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtAsyncio/qasyncio_test_chain.py b/sources/pyside6/tests/QtAsyncio/qasyncio_test_chain.py index f45b51a71..a0a949720 100644 --- a/sources/pyside6/tests/QtAsyncio/qasyncio_test_chain.py +++ b/sources/pyside6/tests/QtAsyncio/qasyncio_test_chain.py @@ -22,8 +22,8 @@ class QAsyncioTestCaseChain(unittest.TestCase): return result async def chain(self, output, n): - link1 = await self.link(output, n, 1) - link2 = await self.link(output, n, 2) + link1 = await self.link(output, n, 0.2) + link2 = await self.link(output, n, 0.5) output += f"chain {n}: {link1} -> {link2} " async def gather(self, output, *args): |
