diff options
author | 2022-07-10 20:06:33 +0200 | |
---|---|---|
committer | 2022-07-10 11:06:33 -0700 | |
commit | c2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch) | |
tree | 3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/geoip/geoip_test.go | |
parent | abc5ac8017b0f434b5845321fb1f405ded7774d4 (diff) | |
download | coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip |
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/geoip/geoip_test.go')
-rw-r--r-- | plugin/geoip/geoip_test.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/plugin/geoip/geoip_test.go b/plugin/geoip/geoip_test.go index eb5c04c2a..b11fc8b57 100644 --- a/plugin/geoip/geoip_test.go +++ b/plugin/geoip/geoip_test.go @@ -14,7 +14,6 @@ import ( ) func TestMetadata(t *testing.T) { - tests := []struct { label string expectedValue string @@ -37,7 +36,6 @@ func TestMetadata(t *testing.T) { knownIPAddr := "81.2.69.142" // This IP should be be part of the CDIR address range used to create the database fixtures. for _, tc := range tests { - t.Run(fmt.Sprintf("%s/%s", tc.label, "direct"), func(t *testing.T) { geoIP, err := newGeoIP(cityDBPath, false) if err != nil { @@ -89,5 +87,4 @@ func testMetadata(t *testing.T, state request.Request, geoIP *GeoIP, label, expe t.Errorf("expected value for label %q should be %q, got %q instead", label, expectedValue, value) } - } |