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:
Robert Lubos 2020-01-31 15:12:24 +01:00 committed by Jukka Rissanen
commit ac12066800
3 changed files with 0 additions and 6 deletions

View file

@ -288,7 +288,6 @@ static int test_disconnect(void)
}
wait(APP_SLEEP_MSECS);
mqtt_input(&client_ctx);
return TC_PASS;
}

View file

@ -413,10 +413,6 @@ static int test_disconnect(void)
}
wait(APP_SLEEP_MSECS);
rc = mqtt_input(&client_ctx);
if (rc != 0) {
return TC_FAIL;
}
if (connected) {
return TC_FAIL;

View file

@ -296,7 +296,6 @@ static int test_disconnect(void)
}
wait(APP_SLEEP_MSECS);
mqtt_input(&client_ctx);
return TC_PASS;
}