diff options
Diffstat (limited to 'plugin/forward/persistent_test.go')
-rw-r--r-- | plugin/forward/persistent_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/forward/persistent_test.go b/plugin/forward/persistent_test.go index 9ea0cdc10..633696ac0 100644 --- a/plugin/forward/persistent_test.go +++ b/plugin/forward/persistent_test.go @@ -96,14 +96,14 @@ func TestCleanupAll(t *testing.T) { c2, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout) c3, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout) - tr.conns[typeUdp] = []*persistConn{{c1, time.Now()}, {c2, time.Now()}, {c3, time.Now()}} + tr.conns[typeUDP] = []*persistConn{{c1, time.Now()}, {c2, time.Now()}, {c3, time.Now()}} - if len(tr.conns[typeUdp]) != 3 { + if len(tr.conns[typeUDP]) != 3 { t.Error("Expected 3 connections") } tr.cleanup(true) - if len(tr.conns[typeUdp]) > 0 { + if len(tr.conns[typeUDP]) > 0 { t.Error("Expected no cached connections") } } |