diff --git a/tests/e2e/containers/containers.go b/tests/e2e/containers/containers.go index df247c0db20..a1703b35f67 100644 --- a/tests/e2e/containers/containers.go +++ b/tests/e2e/containers/containers.go @@ -5,7 +5,6 @@ import ( "context" "fmt" "os" - "regexp" "strings" "testing" "time" @@ -26,8 +25,6 @@ type Manager struct { valResources map[string][]*dockertest.Resource } -var errRegex = regexp.MustCompile(`(E|e)rror`) - // NewManager creates a new Manager instance and initializes // all Docker specific utilies. Returns an error if initialiation fails. func NewManager(isUpgrade bool, isFork bool) (docker *Manager, err error) { @@ -91,16 +88,6 @@ func (m *Manager) ExecCmd(t *testing.T, chainId string, validatorIndex int, comm return false } - errBufString := errBuf.String() - - // Note that this does not match all errors. - // This only works if CLI outpurs "Error" or "error" - // to stderr. - if errRegex.MatchString(errBufString) { - t.Log(errBufString) - return false - } - if success != "" { return strings.Contains(outBuf.String(), success) || strings.Contains(errBuf.String(), success) }