Skip to content

Commit

Permalink
fix one more test
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Jun 30, 2022
1 parent 58e8200 commit 2e02dc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1828,13 +1828,15 @@ func TestReconnectErrorReports(t *testing.T) {

// Now try with leaf nodes
csOpts.Cluster.Port = 0
csOpts.Cluster.Name = _EMPTY_
csOpts.LeafNode.Host = "127.0.0.1"
csOpts.LeafNode.Port = -1

cs = RunServer(csOpts)
defer cs.Shutdown()

opts.Cluster.Port = 0
opts.Cluster.Name = _EMPTY_
opts.Routes = nil
u, _ := url.Parse(fmt.Sprintf("nats://127.0.0.1:%d", csOpts.LeafNode.Port))
opts.LeafNode.Remotes = []*RemoteLeafOpts{{URLs: []*url.URL{u}}}
Expand Down

0 comments on commit 2e02dc3

Please sign in to comment.