Mercurial > vim
changeset 31033:3ad8db9a1e03 v9.0.0851
patch 9.0.0851: terminal mouse test is still flaky
Commit: https://github.com/vim/vim/commit/1d139a012e8b9880885c6f45796437cbee4820c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 10 00:09:22 2022 +0000
patch 9.0.0851: terminal mouse test is still flaky
Problem: Terminal mouse test is still flaky.
Solution: Also use WaitForAssert().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Nov 2022 01:15:03 +0100 |
parents | 238097305e13 |
children | 95b48a68623d |
files | src/testdir/test_terminal3.vim src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -716,7 +716,7 @@ func Test_term_mouse() call TermWait(buf, 50) call term_sendkeys(buf, ":call writefile([@\"], 'Xbuf')\<CR>") call WaitFor(XbufExists) - call assert_equal('yellow', readfile('Xbuf')[0]) + call WaitForAssert({-> assert_equal('yellow', readfile('Xbuf')[0])}) call delete('Xbuf') " Test for selecting text using double click