Flaky test fixed

Due to precision sleep(1000) may actually take 998 and lead to test error.
This commit is contained in:
Ilya.Kazakevich
2016-07-21 17:58:32 +03:00
parent 124285ee2a
commit afc171d39c
+1 -1
View File
@@ -1,7 +1,7 @@
from time import sleep
class TestPyTest:
def testOne(self):
sleep(1) # To check duration
sleep(1.5) # To check duration
assert 4 == 2*2
def testTwo(self):