CJWorkbench / carehare

Async RabbitMQ client that handles all the edge cases
MIT License
4 stars 0 forks source link

`connection.publish()` hangs after disconnect #1

Closed adamhooper closed 3 years ago

adamhooper commented 3 years ago
@ASYNC_TEST
async def test_publish_after_disconnect(connection):
    await connection.close()
    with pytest.raises(carehare.ConnectionClosed):
        await connection.publish(b"foo", routing_key="messages")

Expected results: raise carehare.ConnectionClosed Actual results: stall