mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
http2: fix race-condition in tests
This commit is contained in:
parent
9267b2b501
commit
3579c6dd43
@ -192,7 +192,7 @@ class TestSimple(_Http2Test):
|
||||
elif isinstance(event, h2.events.RequestReceived):
|
||||
assert (b'client-foo', b'client-bar-1') in event.headers
|
||||
assert (b'client-foo', b'client-bar-2') in event.headers
|
||||
|
||||
elif isinstance(event, h2.events.StreamEnded):
|
||||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
# Ignore UnicodeWarning:
|
||||
|
Loading…
Reference in New Issue
Block a user