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 24, 2021
1 parent 7ae8eb0 commit e4ecc35
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 e4ecc35

Please sign in to comment.