From bb62f5f3f5283df5ce20a1136a7b3b60d5916653 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 29 Nov 2015 02:59:25 +0100 Subject: lessen test race conditions --- test/scripts/concurrent_decorator.py | 2 +- test/test_script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/scripts/concurrent_decorator.py b/test/scripts/concurrent_decorator.py index f6feda1d..913d4484 100644 --- a/test/scripts/concurrent_decorator.py +++ b/test/scripts/concurrent_decorator.py @@ -14,7 +14,7 @@ def serverconnect(context, sc): @concurrent def request(context, flow): - time.sleep(0.1) + time.sleep(0.5) @concurrent diff --git a/test/test_script.py b/test/test_script.py index fbe3e107..39b216fb 100644 --- a/test/test_script.py +++ b/test/test_script.py @@ -77,7 +77,7 @@ def test_concurrent(): # Two instantiations assert m.call_count == 0 # No calls yet. - assert (time.time() - t_start) < 0.09 + assert (time.time() - t_start) < 0.5 def test_concurrent2(): -- cgit v1.2.3