diff --git a/nsqlookupd/lookup_protocol_v1_test.go b/nsqlookupd/lookup_protocol_v1_test.go index c395031f8..bd0af070b 100644 --- a/nsqlookupd/lookup_protocol_v1_test.go +++ b/nsqlookupd/lookup_protocol_v1_test.go @@ -38,6 +38,7 @@ func testIOLoopReturnsClientErr(t *testing.T, fakeConn test.FakeNetConn) { prot := &LookupProtocolV1{ctx: &Context{nsqlookupd: New(opts)}} + prot.ctx.nsqlookupd.httpServer = newHTTPServer(&Context{prot.ctx.nsqlookupd}) errChan := make(chan error) test := func() { errChan <- prot.IOLoop(fakeConn)