From 05e8d82c506f7bb3aa6ba9abdaf72a76001da9c5 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Wed, 6 Jul 2022 20:54:13 -0700 Subject: [PATCH] Allow retries on connect Signed-off-by: Derek Collison --- server/mqtt_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mqtt_test.go b/server/mqtt_test.go index a548a476..1105d591 100644 --- a/server/mqtt_test.go +++ b/server/mqtt_test.go @@ -5973,7 +5973,7 @@ func TestMQTTSessionNotDeletedOnDeleteConsumerError(t *testing.T) { nc, js := jsClientConnect(t, s1) defer nc.Close() - mc, r := testMQTTConnect(t, &mqttConnInfo{cleanSess: true}, o.MQTT.Host, o.MQTT.Port) + mc, r := testMQTTConnectRetry(t, &mqttConnInfo{cleanSess: true}, o.MQTT.Host, o.MQTT.Port, 5) defer mc.Close() testMQTTCheckConnAck(t, r, mqttConnAckRCConnectionAccepted, false)