diff options
Diffstat (limited to 'plugin/log/log_test.go')
-rw-r--r-- | plugin/log/log_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/log/log_test.go b/plugin/log/log_test.go index e7f29fff1..16efb2026 100644 --- a/plugin/log/log_test.go +++ b/plugin/log/log_test.go @@ -3,6 +3,7 @@ package log import ( "bytes" "context" + "io/ioutil" "log" "strings" "testing" @@ -239,8 +240,7 @@ func TestLogged(t *testing.T) { } func BenchmarkLogged(b *testing.B) { - var f bytes.Buffer - log.SetOutput(&f) + log.SetOutput(ioutil.Discard) rule := Rule{ NameScope: ".", |