try to avoid timing/race condition
This commit is contained in:
parent
7144cec580
commit
bd296c796f
|
@ -468,7 +468,7 @@ class TestInvocationVariants:
|
||||||
class TestDurations:
|
class TestDurations:
|
||||||
source = """
|
source = """
|
||||||
import time
|
import time
|
||||||
frag = 0.01
|
frag = 0.02
|
||||||
def test_2():
|
def test_2():
|
||||||
time.sleep(frag*2)
|
time.sleep(frag*2)
|
||||||
def test_1():
|
def test_1():
|
||||||
|
@ -550,8 +550,7 @@ class TestDurationWithFixture:
|
||||||
|
|
||||||
result.stdout.fnmatch_lines([
|
result.stdout.fnmatch_lines([
|
||||||
"*durations*",
|
"*durations*",
|
||||||
"*setup*test_1*",
|
"* setup *test_1*",
|
||||||
"*call*test_1*",
|
"* call *test_1*",
|
||||||
"*call*test_2*",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue