resolving build-fails

This commit is contained in:
kaneki003
2025-06-21 14:10:09 +05:30
parent 209deffc8a
commit df17788ec3
2 changed files with 4 additions and 8 deletions

View File

@ -224,14 +224,16 @@ async def test_yamux_stream_reset(yamux_pair):
await client_stream.reset()
# After reset, reading should raise MuxedStreamReset or MuxedStreamEOF
try:
await server_stream.read()
while True:
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):
await server_stream.read()
while True:
await server_stream.read()
with pytest.raises(MuxedStreamError):
await server_stream.write(b"test")
logging.debug("test_yamux_stream_reset complete")