Skip to content

Commit

Permalink
testutil: improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 16, 2020
1 parent 9f17ab0 commit 7194c14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/testutil/testutil.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package testutil contains assistive utilities for testing.
// Package testutil contains utilities for testing.
package testutil

import (
Expand All @@ -11,7 +11,8 @@ import (

// DiscardLogOutput runs tests with discarded logger output.
func DiscardLogOutput(m *testing.M) {
// TODO(e.burkov): Using of global mutable logger is temporary solution.
// TODO(e.burkov): Refactor code and tests to not use the global mutable
// logger.
log.SetOutput(ioutil.Discard)

os.Exit(m.Run())
Expand Down

0 comments on commit 7194c14

Please sign in to comment.