e2e: stop suppressing unexpected EOF errors

This commit is contained in:
Mahmood Ali 2021-05-24 13:35:08 -04:00
parent c1ef539fa3
commit 3b7c5ff46e
1 changed files with 1 additions and 8 deletions

View File

@ -7,7 +7,6 @@ import (
"io"
"reflect"
"regexp"
"strings"
"testing"
"time"
@ -90,13 +89,7 @@ func (tc *NomadExecE2ETest) TestExecBasicResponses(f *framework.F) {
stdin, &stdout, &stderr,
resizeCh, nil)
// TODO: Occasionally, we get "Unexpected EOF" error, but with the correct output.
// investigate why
if err != nil && strings.Contains(err.Error(), io.ErrUnexpectedEOF.Error()) {
f.T().Logf("got unexpected EOF error, ignoring: %v", err)
} else {
assert.NoError(t, err)
}
assert.NoError(t, err)
assert.Equal(t, c.ExitCode, exitCode)