mirror of
https://github.com/neovim/neovim.git
synced 2026-07-27 02:56:35 +00:00
vim-patch:9.2.0392: tests: Some tests are flaky
Problem: tests: Some tests are flaky and cause CI to fail
Solution: Add WaitForAsserts() calls to reduce flakiness
closes: vim/vim#20050
1940bcb243
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -513,14 +513,11 @@ func Test_entering_digraph()
|
||||
CheckRunVimInTerminal
|
||||
let buf = RunVimInTerminal('', {'rows': 6})
|
||||
call term_sendkeys(buf, "i\<C-K>")
|
||||
call TermWait(buf)
|
||||
call assert_equal('?', term_getline(buf, 1))
|
||||
call WaitForAssert({-> assert_equal('?', term_getline(buf, 1))}, 1000)
|
||||
call term_sendkeys(buf, "1")
|
||||
call TermWait(buf)
|
||||
call assert_equal('1', term_getline(buf, 1))
|
||||
call WaitForAssert({-> assert_equal('1', term_getline(buf, 1))}, 1000)
|
||||
call term_sendkeys(buf, "2")
|
||||
call TermWait(buf)
|
||||
call assert_equal('½', term_getline(buf, 1))
|
||||
call WaitForAssert({-> assert_equal('½', term_getline(buf, 1))}, 1000)
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user