mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
cleanup by fmt and remove redundant type declarations (#2563)
This commit is contained in:
committed by
Miek Gieben
parent
1fe66443a7
commit
d42d80c4f6
@@ -347,7 +347,7 @@ func TestServeDNS(t *testing.T) {
|
||||
k := New([]string{"cluster.local."})
|
||||
k.APIConn = &APIConnServeTest{}
|
||||
k.Next = test.NextHandler(dns.RcodeSuccess, nil)
|
||||
k.Namespaces = map[string]struct{}{"testns": struct{}{}}
|
||||
k.Namespaces = map[string]struct{}{"testns": {}}
|
||||
ctx := context.TODO()
|
||||
|
||||
for i, tc := range dnsTestCases {
|
||||
@@ -398,7 +398,7 @@ func TestNotSyncedServeDNS(t *testing.T) {
|
||||
notSynced: true,
|
||||
}
|
||||
k.Next = test.NextHandler(dns.RcodeSuccess, nil)
|
||||
k.Namespaces = map[string]struct{}{"testns": struct{}{}}
|
||||
k.Namespaces = map[string]struct{}{"testns": {}}
|
||||
ctx := context.TODO()
|
||||
|
||||
for i, tc := range notSyncedTestCases {
|
||||
|
||||
Reference in New Issue
Block a user