try to avoid timing/race condition

This commit is contained in:
holger krekel 2011-11-08 23:04:31 +00:00
parent 7144cec580
commit bd296c796f
1 changed files with 3 additions and 4 deletions

View File

@ -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*",
]) ])