mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
lessen test race conditions
This commit is contained in:
parent
0b06b02c92
commit
bb62f5f3f5
@ -14,7 +14,7 @@ def serverconnect(context, sc):
|
||||
|
||||
@concurrent
|
||||
def request(context, flow):
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.5)
|
||||
|
||||
|
||||
@concurrent
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user