Skip to content

Commit

Permalink
nsqlookupd: less flaky protocol test
Browse files Browse the repository at this point in the history
NSQLookupd.New() listens on TCPAddress and HTTPAddress, which
NewOptions() gives default values of 4160 and 4161,
and sometimes this conflicts with other tests running concurrently.
  • Loading branch information
ploxiln committed Oct 25, 2021
1 parent 60ae5ba commit e6b949d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nsqlookupd/lookup_protocol_v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func testIOLoopReturnsClientErr(t *testing.T, fakeConn test.FakeNetConn) {
opts := NewOptions()
opts.Logger = test.NewTestLogger(t)
opts.LogLevel = LOG_DEBUG
opts.TCPAddress = "127.0.0.1:0"
opts.HTTPAddress = "127.0.0.1:0"

nsqlookupd, err := New(opts)
test.Nil(t, err)
Expand Down

0 comments on commit e6b949d

Please sign in to comment.