Set last will in publish test to increase coverage

This commit is contained in:
Johannes Schriewer 2018-07-30 22:06:47 +02:00
parent 0a56f00222
commit 9b89eba536

View file

@ -42,7 +42,9 @@ int main(int argc, char **argv) {
config.client_id = "libmqtt_testsuite";
config.hostname = "localhost";
config.port = 1883;
config.last_will_topic = "testsuite/last_will";
config.last_will_message = "RIP";
LOG("Trying to connect to %s", config.hostname);
MQTTHandle *mqtt = mqtt_connect(&config, mqtt_connected, NULL, err_handler);