add golangci-lint linter (#5499)
This commit is contained in:
parent
abc5ac8017
commit
c2dbb7141a
104 changed files with 83 additions and 184 deletions
2
plugin/cache/cache_test.go
vendored
2
plugin/cache/cache_test.go
vendored
|
@ -609,7 +609,7 @@ func TestCacheWildcardMetadata(t *testing.T) {
|
|||
ctx = metadata.ContextWithMetadata(context.TODO())
|
||||
w = dnstest.NewRecorder(&test.ResponseWriter{})
|
||||
|
||||
c.ServeDNS(ctx, &test.ResponseWriter{}, req)
|
||||
c.ServeDNS(ctx, w, req)
|
||||
f := metadata.ValueFunc(ctx, "zone/wildcard")
|
||||
if f == nil {
|
||||
t.Fatal("expected metadata func for wildcard response retrieved from cache, got nil")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue