Merge pull request #8502 from medyagh/err_spam_ignore

fix test err spam skip logic
pull/8555/head
Medya Ghazizadeh 2020-06-17 11:58:50 -07:00 committed by GitHub
commit c8b6ceaffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -65,15 +65,14 @@ func TestErrorSpam(t *testing.T) {
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)
continue
}
if stderrAllowRe.MatchString(line) {
t.Logf("acceptable stderr: %q", line)
continue
}
if len(strings.TrimSpace(line)) > 0 {
t.Errorf("unexpected stderr: %q", line)
}