mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Use GetDefaultOptions from go-nats instead of deprecated DefaultOptions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user