mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix flaky coverage
This commit is contained in:
parent
74c991d70b
commit
43867dbd98
@ -127,8 +127,8 @@ class WebsocketFrameReader(basethread.BaseThread):
|
||||
return
|
||||
try:
|
||||
r, _, _ = select.select([self.rfile], [], [], 0.05)
|
||||
except OSError:
|
||||
return
|
||||
except OSError: # pragma: no cover
|
||||
return # this is not reliably triggered due to its nature, so we exclude it from coverage.
|
||||
delta = time.time() - starttime
|
||||
if not r and self.timeout and delta > self.timeout:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user