tests: net: mqtt: Fix failure at disconnect
It's no longer needed to call `mqtt_input` after `mqtt_disconnect`. Doing this will actually return an error as the MQTT connection is no longer active after calling `mqtt_disconnect`. Fixes #22360 Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
0113b08baa
commit
ac12066800
3 changed files with 0 additions and 6 deletions
|
@ -288,7 +288,6 @@ static int test_disconnect(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
wait(APP_SLEEP_MSECS);
|
wait(APP_SLEEP_MSECS);
|
||||||
mqtt_input(&client_ctx);
|
|
||||||
|
|
||||||
return TC_PASS;
|
return TC_PASS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -413,10 +413,6 @@ static int test_disconnect(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
wait(APP_SLEEP_MSECS);
|
wait(APP_SLEEP_MSECS);
|
||||||
rc = mqtt_input(&client_ctx);
|
|
||||||
if (rc != 0) {
|
|
||||||
return TC_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (connected) {
|
if (connected) {
|
||||||
return TC_FAIL;
|
return TC_FAIL;
|
||||||
|
|
|
@ -296,7 +296,6 @@ static int test_disconnect(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
wait(APP_SLEEP_MSECS);
|
wait(APP_SLEEP_MSECS);
|
||||||
mqtt_input(&client_ctx);
|
|
||||||
|
|
||||||
return TC_PASS;
|
return TC_PASS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue