fix err spam skip logic

pull/8502/head
Medya Gh 2020-06-16 17:26:27 -07:00
parent 16c3e95260
commit 652446b8de
1 changed files with 4 additions and 5 deletions

View File

@ -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)