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 Options.TCPAddress and Options.HTTPAddress
and sometimes multiple tests are doing this at the same time
  • Loading branch information
ploxiln committed Oct 24, 2021
1 parent 7ae8eb0 commit 759b129
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:14163" // avoid possible conflict with other tests
opts.HTTPAddress = "127.0.0.1:14164"

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

0 comments on commit 759b129

Please sign in to comment.