updated doc-string and reverted mplex-changes

This commit is contained in:
kaneki003
2025-06-24 18:05:15 +05:30
parent d7cdae8a0f
commit 724375e1fa
6 changed files with 56 additions and 187 deletions

View File

@ -224,16 +224,14 @@ async def test_yamux_stream_reset(yamux_pair):
await client_stream.reset()
# After reset, reading should raise MuxedStreamReset or MuxedStreamEOF
try:
while True:
await server_stream.read()
await server_stream.read()
except (MuxedStreamEOF, MuxedStreamError):
pass
else:
pytest.fail("Expected MuxedStreamEOF or MuxedStreamError")
# Verify subsequent operations fail with StreamReset or EOF
with pytest.raises(MuxedStreamError):
while True:
await server_stream.read()
await server_stream.read()
with pytest.raises(MuxedStreamError):
await server_stream.write(b"test")
logging.debug("test_yamux_stream_reset complete")