aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/xfr_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-12-10 10:17:15 +0000
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-12-10 02:17:15 -0800
commit9abbf4a4a07a38af806791882566149418398d39 (patch)
treef8583a2ba923eab367759e0f75ddc813e43c9dd0 /plugin/kubernetes/xfr_test.go
parentc788649a0034246fbb325d5f0b66e8eb4d91ed54 (diff)
downloadcoredns-9abbf4a4a07a38af806791882566149418398d39.tar.gz
coredns-9abbf4a4a07a38af806791882566149418398d39.tar.zst
coredns-9abbf4a4a07a38af806791882566149418398d39.zip
map bool -> map struct{} (#2386)
This clear out the remaining map[x]bool usage and moves the bool to an empty struct. Two note worthy other changes: * EnableChaos in the server is now also exported to make it show up in the documentation. * The auto plugin is left as is, because there the boolean is explicitaly set to false to signal 'to-be-deleted' and the key is left as-is. Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/kubernetes/xfr_test.go')
-rw-r--r--plugin/kubernetes/xfr_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/xfr_test.go b/plugin/kubernetes/xfr_test.go
index dc6404c0c..db55aa8ed 100644
--- a/plugin/kubernetes/xfr_test.go
+++ b/plugin/kubernetes/xfr_test.go
@@ -129,9 +129,9 @@ func TestKubernetesXFRNotAllowed(t *testing.T) {
// difference shows what we're missing when comparing two RR slices
func difference(testRRs []dns.RR, gotRRs []dns.RR) []dns.RR {
- expectedRRs := map[string]bool{}
+ expectedRRs := map[string]struct{}{}
for _, rr := range testRRs {
- expectedRRs[rr.String()] = true
+ expectedRRs[rr.String()] = struct{}{}
}
foundRRs := []dns.RR{}