Closed nmichaud closed 3 years ago
This test is not quite deterministic - it seems to fail every 10 invocations. I'm going to see if i can narrow down the exact sequence of steps.
@belm0 I don't know if you can help me fix the test, the sequencing is a bit tricky - the issue seems to occur because _send_channel is closed while the reader task is still processing an event, so this line https://github.com/HyperionGray/trio-websocket/blob/master/trio_websocket/_impl.py#L1071 throws a trio.ClosedResourceError (trio.BrokenResourceError is only thrown when the _recv_channel is closed).
@belm0 OK this test consistently fails before the fix.
thank you for spending time on a test ❤️
Pull Request Test Coverage Report for Build 106
💛 - Coveralls