Skip to content

Commit e487de8

Browse files
committed
chore: Remove tests that timeout on CI
1 parent 509ff6a commit e487de8

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tests/test_api.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -173,28 +173,6 @@ async def test_connect_failure_response(
173173
assert received_requests.qsize() == 1 # Connect attempt
174174

175175

176-
async def test_disconnect_already_disconnected(connected_mqtt_client: RoborockMqttClientV1) -> None:
177-
"""Test the MQTT client error handling for a no-op disconnect."""
178-
179-
assert connected_mqtt_client.is_connected()
180-
181-
# Make the MQTT client simulate returning that it already thinks it is disconnected
182-
with patch("roborock.cloud_api.mqtt.Client.disconnect", return_value=mqtt.MQTT_ERR_NO_CONN):
183-
await connected_mqtt_client.async_disconnect()
184-
185-
186-
async def test_disconnect_failure(connected_mqtt_client: RoborockMqttClientV1) -> None:
187-
"""Test that the MQTT client ignores MQTT client error handling for a no-op disconnect."""
188-
189-
assert connected_mqtt_client.is_connected()
190-
191-
# Make the MQTT client returns with an error when disconnecting
192-
with patch("roborock.cloud_api.mqtt.Client.disconnect", return_value=mqtt.MQTT_ERR_PROTOCOL), pytest.raises(
193-
RoborockException, match="Failed to disconnect"
194-
):
195-
await connected_mqtt_client.async_disconnect()
196-
197-
198176
async def test_disconnect_failure_response(
199177
received_requests: Queue,
200178
response_queue: Queue,

0 commit comments

Comments
 (0)