mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Flaky test fixed
Due to precision sleep(1000) may actually take 998 and lead to test error.
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user