diff --git a/discovery/consul/consul_test.go b/discovery/consul/consul_test.go index a7763e16d..e3bc7938f 100644 --- a/discovery/consul/consul_test.go +++ b/discovery/consul/consul_test.go @@ -253,7 +253,7 @@ func newServer(t *testing.T) (*httptest.Server, *SDConfig) { time.Sleep(5 * time.Second) response = ServicesTestAnswer default: - require.FailNow(t, "Unhandled consul call: %s", r.URL) + t.Errorf("Unhandled consul call: %s", r.URL) } w.Header().Add("X-Consul-Index", "1") w.Write([]byte(response))