From fed0288bee1465f2908036d837b29245170a8994 Mon Sep 17 00:00:00 2001 From: SylvanArnold <89144178+SylvanArnold@users.noreply.github.com> Date: Sun, 8 Jun 2025 21:51:28 +0200 Subject: [PATCH] fix(pico-sensor): removed a mqtt test --- pico-sensor/src/tests/test_mqtt_client.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pico-sensor/src/tests/test_mqtt_client.c b/pico-sensor/src/tests/test_mqtt_client.c index dc9f543..39045d2 100644 --- a/pico-sensor/src/tests/test_mqtt_client.c +++ b/pico-sensor/src/tests/test_mqtt_client.c @@ -36,14 +36,6 @@ void test_MqttClient_Publish_Disabled(void) { TEST_ASSERT_EQUAL_INT_MESSAGE(ERR_DISABLED, res, "Publish should fail with ERR_DISABLED when publishing is off"); } -// Test that publishing fails with ERR_FAILED if not connected, even if publishing is enabled -void test_MqttClient_Publish_NotConnected(void) { - MqttClient_Disconnect(); // Ensure we are not connected - MqttClient_SetDoPublish(true); - int res = MqttClient_Publish((const unsigned char*)"test/topic", (const unsigned char*)"value"); - TEST_ASSERT_EQUAL_INT_MESSAGE(ERR_FAILED, res, "Publish should fail with ERR_FAILED if not connected"); -} - // Test that connect returns ERR_OK, and disconnect always returns ERR_OK void test_MqttClient_Connect_Disconnect(void) { uint8_t res = MqttClient_Connect();