diff src/testdir/test_terminal.vim @ 15836:fe7e94f39e7f v8.1.0925

patch 8.1.0925: terminal scrollback test still still flaky commit https://github.com/vim/vim/commit/5ff7df509ad6bde89991d38d87a6fc796b862ba7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 15 01:06:13 2019 +0100 patch 8.1.0925: terminal scrollback test still still flaky Problem: Terminal scrollback test still still flaky. Solution: Explicitly set the shell. Disable ruler. (Ozaki Kiichi, closes #3966)
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Feb 2019 01:15:04 +0100
parents 8f4948be3860
children b2423b31266f
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -310,26 +310,24 @@ func Test_terminal_postponed_scrollback(
 
   call writefile(range(50), 'Xtext')
   call writefile([
+	\ 'set shell=/bin/sh noruler',
 	\ 'terminal',
-	\ 'sleep 400m',
+	\ 'sleep 200m',
 	\ 'call feedkeys("tail -n 100 -f Xtext\<CR>", "xt")',
-	\ 'sleep 200m',
+	\ 'sleep 100m',
 	\ 'call feedkeys("\<C-W>N", "xt")',
 	\ ], 'XTest_postponed')
   let buf = RunVimInTerminal('-S XTest_postponed', {})
   " Check that the Xtext lines are displayed and in Terminal-Normal mode
-  call term_wait(buf)
   call VerifyScreenDump(buf, 'Test_terminal_01', {})
 
   silent !echo 'one more line' >>Xtext
   " Sceen will not change, move cursor to get a different dump
   call term_sendkeys(buf, "k")
-  call term_wait(buf)
   call VerifyScreenDump(buf, 'Test_terminal_02', {})
 
   " Back to Terminal-Job mode, text will scroll and show the extra line.
   call term_sendkeys(buf, "a")
-  call term_wait(buf)
   call VerifyScreenDump(buf, 'Test_terminal_03', {})
 
   call term_wait(buf)