File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -173,28 +173,6 @@ async def test_connect_failure_response(
173
173
assert received_requests .qsize () == 1 # Connect attempt
174
174
175
175
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
-
198
176
async def test_disconnect_failure_response (
199
177
received_requests : Queue ,
200
178
response_queue : Queue ,
You can’t perform that action at this time.
0 commit comments