mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
cleanup by fmt and remove redundant type declarations (#2563)
This commit is contained in:
committed by
Miek Gieben
parent
1fe66443a7
commit
d42d80c4f6
@@ -15,7 +15,7 @@ func TestKubernetesXFR(t *testing.T) {
|
||||
k := New([]string{"cluster.local."})
|
||||
k.APIConn = &APIConnServeTest{}
|
||||
k.TransferTo = []string{"10.240.0.1:53"}
|
||||
k.Namespaces = map[string]struct{}{"testns": struct{}{}}
|
||||
k.Namespaces = map[string]struct{}{"testns": {}}
|
||||
|
||||
ctx := context.TODO()
|
||||
w := dnstest.NewMultiRecorder(&test.ResponseWriter{})
|
||||
@@ -103,7 +103,7 @@ func TestKubernetesXFRNotAllowed(t *testing.T) {
|
||||
k := New([]string{"cluster.local."})
|
||||
k.APIConn = &APIConnServeTest{}
|
||||
k.TransferTo = []string{"1.2.3.4:53"}
|
||||
k.Namespaces = map[string]struct{}{"testns": struct{}{}}
|
||||
k.Namespaces = map[string]struct{}{"testns": {}}
|
||||
|
||||
ctx := context.TODO()
|
||||
w := dnstest.NewMultiRecorder(&test.ResponseWriter{})
|
||||
|
||||
Reference in New Issue
Block a user