diff --git a/nameresolution/consul/consul_test.go b/nameresolution/consul/consul_test.go index c1688e21aa..3f36c3394b 100644 --- a/nameresolution/consul/consul_test.go +++ b/nameresolution/consul/consul_test.go @@ -867,10 +867,9 @@ func TestResolveID(t *testing.T) { }, }, } - resolver := newResolver(logger.NewLogger("test"), &mock) - resolver.config = testConfig + resolver := newResolver(logger.NewLogger("test"), testConfig, &mock, ®istry{}, make(chan struct{})) - addr, _ := resolver.ResolveID(req) + addr, _ := resolver.ResolveID(context.Background(), req) assert.Equal(t, "localhost:50005", addr) },