-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: reduce end2end log spam #546
Conversation
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 4e9bdfe) |
|
||
var testLogOutput = &lockingWriter{w: os.Stderr} | ||
|
||
func awaitLogOutput(t *testing.T, maxWait time.Duration, phrase string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t
is unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yeah, I changed my mind about something earlier. Removed.
I have grander plans for all this logging stuff, but this is a baby step.
LGTM. Leveled logging would be pretty helpful here. |
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev fa64708) |
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 35e8ba4) |
Rebased. No new changes. |
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev f8861d0) |
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev 303da9d) |
Filter expected log output by default, unless a flag is provided, or a test fails. This makes it possible to see unexpected things. Having noisy tests makes it too easy to miss actual problems.
Gerrit code review: https://go-review.googlesource.com/19451 (at git rev ffa8131) |
test: reduce end2end log spam
Filter expected log output by default, unless a flag is provided, or a
test fails.
This makes it possible to see unexpected things. Having noisy tests
makes it too easy to miss actual problems.