diff src/testdir/test_vim9_func.vim @ 26564:7f90bde42bcc v8.2.3811

patch 8.2.3811: the opfunc error test fails on a slow machine Commit: https://github.com/vim/vim/commit/7c0fb800302c3bdd2dfa5ba10d0caa806e9500f6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 14 20:26:53 2021 +0000 patch 8.2.3811: the opfunc error test fails on a slow machine Problem: The opfunc error test fails on a slow machine. Solution: Use WaitForAssert().
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Dec 2021 21:30:05 +0100
parents 454a1c9ef797
children b12d8a5af20e
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -3231,6 +3231,7 @@ def Run_Test_opfunc_error()
   call writefile(lines, 'XTest_opfunc_error')
 
   var buf = RunVimInTerminal('-S XTest_opfunc_error', {rows: 6, wait_for_ruler: 0})
+  WaitForAssert(() => assert_match('Press ENTER', term_getline(buf, 6)))
   VerifyScreenDump(buf, 'Test_opfunc_error', {})
 
   # clean up