From cb55e944c2e9cb5bedebca87f5eadfb357966d41 Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Fri, 17 Jan 2025 18:00:48 +0200 Subject: [PATCH] [terminal] IJPL-173788 Improve stability of the shell integration test GitOrigin-RevId: fbc886be7dabd31a66b5f3d75b854630e996adda --- .../jetbrains/plugins/terminal/reworked/ShellIntegrationTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/terminal/tests/org/jetbrains/plugins/terminal/reworked/ShellIntegrationTest.kt b/plugins/terminal/tests/org/jetbrains/plugins/terminal/reworked/ShellIntegrationTest.kt index 96c99fbd07ca..0cd6d5475ecc 100644 --- a/plugins/terminal/tests/org/jetbrains/plugins/terminal/reworked/ShellIntegrationTest.kt +++ b/plugins/terminal/tests/org/jetbrains/plugins/terminal/reworked/ShellIntegrationTest.kt @@ -98,7 +98,7 @@ internal class ShellIntegrationTest(private val shellPath: Path) { fun `prompt events received after prompt is redrawn because of long completion output`() = timeoutRunBlocking(30.seconds) { Assume.assumeTrue(shellPath.toString().contains("zsh")) - val events = startSessionAndCollectOutputEvents { inputChannel -> + val events = startSessionAndCollectOutputEvents(TermSize(80, 4)) { inputChannel -> inputChannel.send(TerminalWriteBytesEvent("g".toByteArray() + TAB_BYTES)) // Shell can ask "do you wish to see all N possibilities? (y/n)" // Wait for this question and ask `y`