fix err spam skip logic
parent
16c3e95260
commit
652446b8de
|
@ -65,14 +65,13 @@ func TestErrorSpam(t *testing.T) {
|
|||
|
||||
for _, line := range strings.Split(stderr, "\n") {
|
||||
if strings.HasPrefix(line, "E") {
|
||||
t.Errorf("unexpected error log: %q", line)
|
||||
continue
|
||||
}
|
||||
|
||||
if stderrAllowRe.MatchString(line) {
|
||||
t.Logf("acceptable stderr: %q", line)
|
||||
continue
|
||||
}
|
||||
t.Errorf("unexpected error log: %q", line)
|
||||
continue
|
||||
}
|
||||
|
||||
if len(strings.TrimSpace(line)) > 0 {
|
||||
t.Errorf("unexpected stderr: %q", line)
|
||||
|
|
Loading…
Reference in New Issue