From 34d01012e474adf422205ff916a7e778ae24531d Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Wed, 17 Jun 2020 08:58:24 +0200 Subject: [PATCH] Relax constraints on flaky tests (due to // runs) --- local/e2e/backend_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/local/e2e/backend_test.go b/local/e2e/backend_test.go index 653a045f8..d2015c2d2 100644 --- a/local/e2e/backend_test.go +++ b/local/e2e/backend_test.go @@ -1,7 +1,6 @@ package e2e import ( - "strings" "testing" "github.com/stretchr/testify/assert" @@ -36,8 +35,7 @@ func (m *LocalBackendTestSuite) TestRun() { defer func() { m.NewDockerCommand("rm", "-f", "nginx").ExecOrDie() }() - lines := strings.Split(out, "\n") - assert.Equal(m.T(), 3, len(lines)) + assert.Contains(m.T(), out, "nginx") } func (m *LocalBackendTestSuite) TestRunWithPorts() {