From ea293da1d6bb0c4f598c8790c6941d56c79c0aa3 Mon Sep 17 00:00:00 2001 From: Pat Downey Date: Tue, 4 Jul 2023 15:35:55 +0100 Subject: Fix forward metrics for backwards compatibility (#6178) --- plugin/pkg/proxy/proxy_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin/pkg/proxy/proxy_test.go') diff --git a/plugin/pkg/proxy/proxy_test.go b/plugin/pkg/proxy/proxy_test.go index 17125ea68..33a7170c0 100644 --- a/plugin/pkg/proxy/proxy_test.go +++ b/plugin/pkg/proxy/proxy_test.go @@ -24,7 +24,7 @@ func TestProxy(t *testing.T) { }) defer s.Close() - p := NewProxy(s.Addr, transport.DNS) + p := NewProxy("TestProxy", s.Addr, transport.DNS) p.readTimeout = 10 * time.Millisecond p.Start(5 * time.Second) m := new(dns.Msg) @@ -54,7 +54,7 @@ func TestProxyTLSFail(t *testing.T) { }) defer s.Close() - p := NewProxy(s.Addr, transport.TLS) + p := NewProxy("TestProxyTLSFail", s.Addr, transport.TLS) p.readTimeout = 10 * time.Millisecond p.SetTLSConfig(&tls.Config{}) p.Start(5 * time.Second) @@ -72,7 +72,7 @@ func TestProxyTLSFail(t *testing.T) { } func TestProtocolSelection(t *testing.T) { - p := NewProxy("bad_address", transport.DNS) + p := NewProxy("TestProtocolSelection", "bad_address", transport.DNS) p.readTimeout = 10 * time.Millisecond stateUDP := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)} @@ -119,7 +119,7 @@ func TestProxyIncrementFails(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - p := NewProxy("bad_address", transport.DNS) + p := NewProxy("TestProxyIncrementFails", "bad_address", transport.DNS) p.fails = tc.fails p.incrementFails() if p.fails != tc.expectFails { -- cgit v1.2.3