Update tests so they don't try to assign a now invalid value #1193

This commit is contained in:
Ian Craggs 2022-03-07 20:30:24 +00:00
parent 5bb49f8772
commit 6af66f31e2
1 changed files with 2 additions and 2 deletions

View File

@ -1656,7 +1656,7 @@ int test5(struct Options options)
}
createOptions.sendWhileDisconnected = 0;
createOptions.maxBufferedMessages = 0;
createOptions.maxBufferedMessages = 1;
createOptions.MQTTVersion = MQTTVERSION_5;
rc = MQTTAsync_createWithOptions(&d, options.connection, clientidd, MQTTCLIENT_PERSISTENCE_DEFAULT,
NULL, &createOptions);
@ -1826,7 +1826,7 @@ int test6(struct Options options)
}
createOptions.sendWhileDisconnected = 0;
createOptions.maxBufferedMessages = 0;
createOptions.maxBufferedMessages = 1;
createOptions.MQTTVersion = MQTTVERSION_5;
rc = MQTTAsync_createWithOptions(&d, options.connection, clientidd, MQTTCLIENT_PERSISTENCE_DEFAULT,
NULL, &createOptions);