summaryrefslogtreecommitdiff
path: root/src/testdir/test_terminal.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-11 20:45:23 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-11 20:45:23 +0200
commita038cb5eab24a9c395861694d9b8f610ec0ccb61 (patch)
treee9aab118ace1b0f7de4c7e3830f8f94a8a9381ad /src/testdir/test_terminal.vim
parentc212798333cab2239acd387725987f27c6d8a3f7 (diff)
downloadvim-git-a038cb5eab24a9c395861694d9b8f610ec0ccb61.tar.gz
patch 8.0.1095: terminal multibyte escrape test is flakyv8.0.1095
Problem: Terminal multibyte escrape test is flaky. Solution: Add another condition to wait for.
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r--src/testdir/test_terminal.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index b4268f57b..4596d9130 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -197,7 +197,7 @@ func Test_terminal_scrape_multibyte()
let g:line = 1
endif
- call WaitFor('term_scrape(g:buf, g:line)[0].chars == "l"')
+ call WaitFor('len(term_scrape(g:buf, g:line)) >= 7 && term_scrape(g:buf, g:line)[0].chars == "l"')
let l = term_scrape(g:buf, g:line)
call assert_true(len(l) >= 7)
call assert_equal('l', l[0].chars)