summaryrefslogtreecommitdiff
path: root/src/testdir/test_search.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r--src/testdir/test_search.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 93a03434c..c923e9d40 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -494,7 +494,7 @@ func Test_search_cmdline8()
call writefile(lines, 'Xsearch.txt')
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3})
- call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] })
+ call WaitForAssert({-> assert_equal(lines, [term_getline(buf, 1), term_getline(buf, 2)])})
call term_sendkeys(buf, ":set incsearch hlsearch\<cr>")
call term_sendkeys(buf, ":14vsp\<cr>")
@@ -619,7 +619,7 @@ func Test_search_cmdline_incsearch_highlight_attr()
call writefile(lines, 'Xsearch.txt')
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3})
- call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] })
+ call WaitForAssert({-> assert_equal(lines, [term_getline(buf, 1), term_getline(buf, 2)])})
" wait for vim to complete initialization
call term_wait(buf)