[terminal] IJPL-188778 Fix flaky failures of the bash posix mode test

For some reason sometimes there can be different numbers of ending line breaks. Should not be a big issue for this test.

GitOrigin-RevId: f52b527658ef71e0184789c5e261a16a50f70f05
This commit is contained in:
Konstantin Hudyakov
2025-06-26 20:02:01 +00:00
committed by intellij-monorepo-bot
parent 07987031af
commit e400e035e8
@@ -371,8 +371,8 @@ internal class ShellIntegrationTest(private val shellPath: Path) {
startSessionAndCollectOutputEvents(options, block = terminalInputActions)
}
val regularSessionOutput = calculateResultingOutput(regularSessionEvents.await())
val posixSessionOutput = calculateResultingOutput(posixSessionEvents.await())
val regularSessionOutput = calculateResultingOutput(regularSessionEvents.await()).trim()
val posixSessionOutput = calculateResultingOutput(posixSessionEvents.await()).trim()
// Check that the output of posix and regular sessions is the same
assertThat(posixSessionOutput).isEqualTo(regularSessionOutput)