From 5d79baf3f8cc2986dacfe0e34ff0b84794beecb4 Mon Sep 17 00:00:00 2001 From: Andrey Paramonov Date: Wed, 12 Dec 2018 15:33:29 +0300 Subject: [PATCH] Fix flaky test attempt 2 --- testing/test_junitxml.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index 896b11b82..aafbb8da9 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -158,18 +158,18 @@ class TestPython(object): """ import time, pytest def setup_module(): - time.sleep(0.01) + time.sleep(0.1) def teardown_module(): - time.sleep(0.01) + time.sleep(0.1) def test_sleep(): - time.sleep(0.01) + time.sleep(0.1) """ ) result, dom = runandparse(testdir, "-o", "junit_time=call") node = dom.find_first_by_tag("testsuite") tnode = node.find_first_by_tag("testcase") val = tnode["time"] - assert 0.01 <= round(float(val), 3) < 0.02 + assert 0.1 <= round(float(val), 2) < 0.2 def test_setup_error(self, testdir): testdir.makepyfile(