diff --git a/test/integration/error_spam_test.go b/test/integration/error_spam_test.go index 9925b575a7..590f1f29d5 100644 --- a/test/integration/error_spam_test.go +++ b/test/integration/error_spam_test.go @@ -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) }