tests: fix flaky test_timeout (#6773)

Use a longer timeout on CI - seen a failure with it with GHA (Windows).

Ref: a4554e666a
This commit is contained in:
Daniel Hahler 2020-02-21 12:52:31 +01:00 committed by GitHub
parent 58ef95ed4d
commit 81a9df6ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ def test_timeout(testdir, enabled):
"""
testdir.makepyfile(
"""
import time
import os, time
def test_timeout():
time.sleep(0.1)
time.sleep(1 if "CI" in os.environ else 0.1)
"""
)
testdir.makeini(