patch 8.2.2647: terminal test sometimes hangs
Problem: Terminal test sometimes hangs.
Solution: Wait for the shell to display a prompt.
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 3def03d..a82ad8c 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -889,6 +889,8 @@
func TerminalTmap(remap)
let buf = Run_shell_in_terminal({})
+ " Wait for the shell to display a prompt
+ call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
call assert_equal('t', mode())
if a:remap