[terminal] IJPL-173788 Improve stability of the shell integration test

GitOrigin-RevId: fbc886be7dabd31a66b5f3d75b854630e996adda
This commit is contained in:
Konstantin Hudyakov
2025-01-17 17:42:10 +00:00
committed by intellij-monorepo-bot
parent de2d3dd1c3
commit cb55e944c2
@@ -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`