aboutsummaryrefslogtreecommitdiff
path: root/test/proxy_health_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/proxy_health_test.go')
-rw-r--r--test/proxy_health_test.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/proxy_health_test.go b/test/proxy_health_test.go
index 11ae1a4ee..620d8b274 100644
--- a/test/proxy_health_test.go
+++ b/test/proxy_health_test.go
@@ -3,36 +3,9 @@ package test
import (
"testing"
- "github.com/coredns/coredns/plugin/proxy"
- "github.com/coredns/coredns/plugin/test"
- "github.com/coredns/coredns/request"
-
"github.com/miekg/dns"
)
-func TestProxyErratic(t *testing.T) {
- corefile := `example.org:0 {
- erratic {
- drop 2
- }
- }
-`
-
- backend, udp, _, err := CoreDNSServerAndPorts(corefile)
- if err != nil {
- t.Fatalf("Could not get CoreDNS serving instance: %s", err)
- }
- defer backend.Stop()
-
- p := proxy.NewLookup([]string{udp})
- state := request.Request{W: &test.ResponseWriter{}, Req: new(dns.Msg)}
-
- // We do one lookup that should not time out.
- // After this the backend is marked unhealthy anyway. So basically this
- // tests that it times out.
- p.Lookup(state, "example.org.", dns.TypeA)
-}
-
func TestProxyThreeWay(t *testing.T) {
// Run 3 CoreDNS server, 2 upstream ones and a proxy. 1 Upstream is unhealthy after 1 query, but after
// that we should still be able to send to the other one.