Use GetDefaultOptions from go-nats instead of deprecated DefaultOptions

This commit is contained in:
Ivan Markin
2017-07-22 23:49:51 +00:00
parent 3ee7f3b3b1
commit c3455e7874
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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