From c3455e78747dfb1e6cd3f618d96fdd377ff3994e Mon Sep 17 00:00:00 2001 From: Ivan Markin Date: Sat, 22 Jul 2017 23:49:51 +0000 Subject: [PATCH] Use GetDefaultOptions from go-nats instead of deprecated DefaultOptions --- test/client_cluster_test.go | 4 ++-- test/tls_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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