diff options
Diffstat (limited to 'plugin/kubernetes/handler_test.go')
-rw-r--r-- | plugin/kubernetes/handler_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go index 8dbacbd14..956d611af 100644 --- a/plugin/kubernetes/handler_test.go +++ b/plugin/kubernetes/handler_test.go @@ -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 { |