diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 02:59:25 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 02:59:25 +0100 |
commit | bb62f5f3f5283df5ce20a1136a7b3b60d5916653 (patch) | |
tree | 97cdb9c2776e49fab2df585d63c9a5a452ea465e /test | |
parent | 0b06b02c92e3078d886c80e9f15b8740132d26a8 (diff) | |
download | mitmproxy-bb62f5f3f5283df5ce20a1136a7b3b60d5916653.tar.gz mitmproxy-bb62f5f3f5283df5ce20a1136a7b3b60d5916653.tar.bz2 mitmproxy-bb62f5f3f5283df5ce20a1136a7b3b60d5916653.zip |
lessen test race conditions
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/concurrent_decorator.py | 2 | ||||
-rw-r--r-- | test/test_script.py | 2 |
2 files changed, 2 insertions, 2 deletions
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(): |