提交 b18aa2a5 编写于 作者: T Thomas Stromberg

Apply stderrAllowRe to non-error log statements

上级 935ea862
......@@ -68,12 +68,8 @@ func TestErrorSpam(t *testing.T) {
stderr := rr.Stderr.String()
for _, line := range strings.Split(stderr, "\n") {
if strings.HasPrefix(line, "E") {
if stderrAllowRe.MatchString(line) {
t.Logf("acceptable stderr: %q", line)
continue
}
t.Errorf("unexpected error log: %q", line)
if stderrAllowRe.MatchString(line) {
t.Logf("acceptable stderr: %q", line)
continue
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册