diff options
author | 2018-04-24 16:10:31 +0100 | |
---|---|---|
committer | 2018-04-24 16:10:31 +0100 | |
commit | d49194623f3b87701efd4d636b4a8caaec3b51aa (patch) | |
tree | ee9539abf94207601b211fc5d1f5c9af592bac76 /plugin/forward/persistent_test.go | |
parent | b9ddb061e146faa1ea1837f5d350bdf682fab9a9 (diff) | |
download | coredns-d49194623f3b87701efd4d636b4a8caaec3b51aa.tar.gz coredns-d49194623f3b87701efd4d636b4a8caaec3b51aa.tar.zst coredns-d49194623f3b87701efd4d636b4a8caaec3b51aa.zip |
plugin/forward: remove lenc and lencOut channels (#1726)
Remove these 2 channels, as they were only used in testing and
complicate things if we want to do a clean stop()
Less is more.
Diffstat (limited to 'plugin/forward/persistent_test.go')
-rw-r--r-- | plugin/forward/persistent_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/plugin/forward/persistent_test.go b/plugin/forward/persistent_test.go index f4f476afa..4b60c7c07 100644 --- a/plugin/forward/persistent_test.go +++ b/plugin/forward/persistent_test.go @@ -30,28 +30,4 @@ func TestPersistent(t *testing.T) { tr.Yield(c1) tr.Yield(c2) tr.Yield(c3) - - if x := tr.Len(); x != 3 { - t.Errorf("Expected cache size to be 3, got %d", x) - } - - c4, cache4, _ := tr.Dial("udp") - if x := tr.Len(); x != 2 { - t.Errorf("Expected cache size to be 2, got %d", x) - } - - c5, cache5, _ := tr.Dial("udp") - if x := tr.Len(); x != 1 { - t.Errorf("Expected cache size to be 1, got %d", x) - } - - if cache4 == false || cache5 == false { - t.Errorf("Expected cached connection") - } - tr.Yield(c4) - tr.Yield(c5) - - if x := tr.Len(); x != 3 { - t.Errorf("Expected cache size to be 3, got %d", x) - } } |