aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/proxy/persistent_test.go
diff options
context:
space:
mode:
authorGravatar Pat Downey <patdowney@users.noreply.github.com> 2023-07-04 15:35:55 +0100
committerGravatar GitHub <noreply@github.com> 2023-07-04 16:35:55 +0200
commitea293da1d6bb0c4f598c8790c6941d56c79c0aa3 (patch)
tree9e808cf986b72673e2b9b176624cada501cd594e /plugin/pkg/proxy/persistent_test.go
parent6e1263d3d9ae1deef399df23d4ae47d2c3154e03 (diff)
downloadcoredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.tar.gz
coredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.tar.zst
coredns-ea293da1d6bb0c4f598c8790c6941d56c79c0aa3.zip
Fix forward metrics for backwards compatibility (#6178)
Diffstat (limited to 'plugin/pkg/proxy/persistent_test.go')
-rw-r--r--plugin/pkg/proxy/persistent_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/pkg/proxy/persistent_test.go b/plugin/pkg/proxy/persistent_test.go
index c78bd7f1f..56d837113 100644
--- a/plugin/pkg/proxy/persistent_test.go
+++ b/plugin/pkg/proxy/persistent_test.go
@@ -17,7 +17,7 @@ func TestCached(t *testing.T) {
})
defer s.Close()
- tr := newTransport(s.Addr)
+ tr := newTransport("TestCached", s.Addr)
tr.Start()
defer tr.Stop()
@@ -56,7 +56,7 @@ func TestCleanupByTimer(t *testing.T) {
})
defer s.Close()
- tr := newTransport(s.Addr)
+ tr := newTransport("TestCleanupByTimer", s.Addr)
tr.SetExpire(100 * time.Millisecond)
tr.Start()
defer tr.Stop()
@@ -90,7 +90,7 @@ func TestCleanupAll(t *testing.T) {
})
defer s.Close()
- tr := newTransport(s.Addr)
+ tr := newTransport("TestCleanupAll", s.Addr)
c1, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout)
c2, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout)