Skip to content

Commit 1339eb3

Browse files
committed
Reduce worst case timeout for test failing
1 parent 8db6344 commit 1339eb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apsw/tests/aiotest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ async def current_effective_deadline():
737737

738738
async def func():
739739
try:
740-
await sleep(1000)
740+
await sleep(10)
741741
except:
742742
# trio does Cancelled here - the caller gets timeout exception
743743
timed_out.set()
@@ -747,7 +747,7 @@ async def func():
747747

748748
# we need to ensure the async function is running hence delays
749749
# until it gets executed
750-
for timeout in (0, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5):
750+
for timeout in (0, 0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, 2):
751751
try:
752752
with fail_after(timeout):
753753
await (await db.execute("select func()")).get

0 commit comments

Comments
 (0)