From e6b949db33785f518e05ee44ff7f28230c5832b5 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sun, 24 Oct 2021 00:41:20 -0400 Subject: [PATCH] nsqlookupd: less flaky protocol test 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. --- nsqlookupd/lookup_protocol_v1_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nsqlookupd/lookup_protocol_v1_test.go b/nsqlookupd/lookup_protocol_v1_test.go index 8ce0d3ce0..af9f3a7e5 100644 --- a/nsqlookupd/lookup_protocol_v1_test.go +++ b/nsqlookupd/lookup_protocol_v1_test.go @@ -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)