vim-patch:8.2.4211: window title test still fails in some configurations

Problem:    Window title test still fails in some configurations.
Solution:   Use WaitForAssert().

3a8ad5918b

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-08-21 16:16:47 +08:00
parent 7fab06cb0c
commit 67edc0a772

View File

@@ -2022,7 +2022,7 @@ func Test_setbufvar_keep_window_title()
END
call writefile(lines, 'Xsetbufvar')
let buf = RunVimInTerminal('-S Xsetbufvar', {})
call assert_match('Xa.txt', term_gettitle(buf))
call WaitForAssert({-> assert_match('Xa.txt', term_gettitle(buf))}, 1000)
call term_sendkeys(buf, "i\<F2>")
call TermWait(buf)