diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-14 23:49:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-14 23:49:38 +0100 |
commit | 96baf02aa87dc6ec43850c5617fe53061edd97bf (patch) | |
tree | a67a26d677a463a88bf9c07ad3fe140b2838fcdd /src/testdir/test_terminal.vim | |
parent | 81aa0f56f8be6922730f1ca368d6c64661dc97a3 (diff) | |
download | vim-git-96baf02aa87dc6ec43850c5617fe53061edd97bf.tar.gz |
patch 8.1.0922: terminal scrollback test is flakyv8.1.0922
Problem: Terminal scrollback test is flaky.
Solution: Wait a bit before running the tail command.
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index ba06f3623..9529b764c 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -311,6 +311,7 @@ func Test_terminal_postponed_scrollback() call writefile(range(50), 'Xtext') call writefile([ \ 'terminal', + \ 'sleep 100m', \ 'call feedkeys("tail -n 100 -f Xtext\<CR>", "xt")', \ 'sleep 100m', \ 'call feedkeys("\<C-W>N", "xt")', @@ -318,21 +319,18 @@ func Test_terminal_postponed_scrollback() let buf = RunVimInTerminal('-S XTest_postponed', {}) " Check that the Xtext lines are displayed and in Terminal-Normal mode call term_wait(buf) - " TODO: this sometimes fails - "call VerifyScreenDump(buf, 'Test_terminal_01', {}) + 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) - " TODO: this sometimes fails - "call VerifyScreenDump(buf, 'Test_terminal_02', {}) + 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) - " TODO: this sometimes fails - "call VerifyScreenDump(buf, 'Test_terminal_03', {}) + call VerifyScreenDump(buf, 'Test_terminal_03', {}) call term_wait(buf) call term_sendkeys(buf, "\<C-C>") |