Skip to content

Commit 578ccf6

Browse files
authored
Merge pull request #6170 from thaJeztah/e2e_newline_check
e2e/global: TestPromptExitCode: check for trailing newline
2 parents 30cad38 + 0c5e258 commit 578ccf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/global/cli_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func TestPromptExitCode(t *testing.T) {
240240
case <-writeDone:
241241
buf.Reset()
242242
assert.NilError(t, bufioWriter.Flush())
243-
assert.Equal(t, buf.String(), "\n", "expected a new line after the process exits from SIGINT")
243+
assert.Assert(t, strings.HasSuffix(buf.String(), "\n"), "expected a new line after the process exits from SIGINT")
244244
}
245245
})
246246
}

0 commit comments

Comments
 (0)