diff --git a/test/client_cluster_test.go b/test/client_cluster_test.go index c9416476..5f6c31e3 100644 --- a/test/client_cluster_test.go +++ b/test/client_cluster_test.go @@ -25,7 +25,7 @@ func TestServerRestartReSliceIssue(t *testing.T) { servers := []string{urlA, urlB} - opts := nats.DefaultOptions + opts := nats.GetDefaultOptions() opts.Timeout = (5 * time.Second) opts.ReconnectWait = (50 * time.Millisecond) opts.MaxReconnect = 1000 @@ -115,7 +115,7 @@ func TestServerRestartAndQueueSubs(t *testing.T) { urlB := fmt.Sprintf("nats://%s:%d/", optsB.Host, optsB.Port) // Client options - opts := nats.DefaultOptions + opts := nats.GetDefaultOptions() opts.Timeout = (5 * time.Second) opts.ReconnectWait = (50 * time.Millisecond) opts.MaxReconnect = 1000 diff --git a/test/tls_test.go b/test/tls_test.go index 6d3cc8d8..eb02f79a 100644 --- a/test/tls_test.go +++ b/test/tls_test.go @@ -93,7 +93,7 @@ func TestTLSClientCertificate(t *testing.T) { MinVersion: tls.VersionTLS12, } - copts := nats.DefaultOptions + copts := nats.GetDefaultOptions() copts.Url = nurl copts.Secure = true copts.TLSConfig = config