From a038cb5eab24a9c395861694d9b8f610ec0ccb61 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 11 Sep 2017 20:45:23 +0200 Subject: patch 8.0.1095: terminal multibyte escrape test is flaky Problem: Terminal multibyte escrape test is flaky. Solution: Add another condition to wait for. --- src/testdir/test_terminal.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testdir/test_terminal.vim') 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) -- cgit v1.2.1