diff --git a/e2e/global/cli_test.go b/e2e/global/cli_test.go index f79acd1aa76b..6d8f0d2dfed9 100644 --- a/e2e/global/cli_test.go +++ b/e2e/global/cli_test.go @@ -240,7 +240,7 @@ func TestPromptExitCode(t *testing.T) { case <-writeDone: buf.Reset() assert.NilError(t, bufioWriter.Flush()) - assert.Equal(t, buf.String(), "\n", "expected a new line after the process exits from SIGINT") + assert.Assert(t, strings.HasSuffix(buf.String(), "\n"), "expected a new line after the process exits from SIGINT") } }) }