From e400e035e8bdf8b6a39368c6503d84c6ff2041ca Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Thu, 26 Jun 2025 13:32:57 +0300 Subject: [PATCH] [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 --- .../com/intellij/terminal/backend/ShellIntegrationTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/terminal/backend/testSrc/com/intellij/terminal/backend/ShellIntegrationTest.kt b/plugins/terminal/backend/testSrc/com/intellij/terminal/backend/ShellIntegrationTest.kt index bd8e1c8a0db5..5983f0fe5451 100644 --- a/plugins/terminal/backend/testSrc/com/intellij/terminal/backend/ShellIntegrationTest.kt +++ b/plugins/terminal/backend/testSrc/com/intellij/terminal/backend/ShellIntegrationTest.kt @@ -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)