fixes Yakifo/amqtt#86 : verify that the issue has been fixed

pull/202/head
Andrew Mirsky 2025-06-08 22:42:49 -04:00
rodzic 80016d8cca
commit 2b1599e6af
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A98E67635CDF2C39
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -740,3 +740,14 @@ async def test_broker_broadcast_cancellation(broker):
await _client_publish(topic, data, qos)
message = await asyncio.wait_for(sub_client.deliver_message(), timeout=1)
assert message
def test_broker_socket_open_close(broker):
# check that https://github.com/Yakifo/amqtt/issues/86 is fixed
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server = ('localhost', 1883)
sock.connect(server)
sock.close()