From afc171d39c0d65e295ad228dee6625cfb07006c4 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Thu, 21 Jul 2016 17:57:32 +0300 Subject: [PATCH] Flaky test fixed Due to precision sleep(1000) may actually take 998 and lead to test error. --- python/testData/testRunner/env/pytest/test1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/testData/testRunner/env/pytest/test1.py b/python/testData/testRunner/env/pytest/test1.py index 1b57c5fd7d9b..9a064ecd9199 100644 --- a/python/testData/testRunner/env/pytest/test1.py +++ b/python/testData/testRunner/env/pytest/test1.py @@ -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):