Merge pull request #6170 from thaJeztah/e2e_newline_check

e2e/global: TestPromptExitCode: check for trailing newline
This commit is contained in:
Paweł Gronowski 2025-07-09 14:04:02 +02:00 committed by GitHub
commit 578ccf607d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}
})
}