From: Andreas Louv Date: Thu, 30 Mar 2023 23:02:01 +0000 (+0200) Subject: Add tiny sleeps in the tests to stop them from being flaky X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5547f9d52cbedc08d424620c5a3aa4f5dbce7597;p=vim-lsp.git Add tiny sleeps in the tests to stop them from being flaky --- diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 9148eb9..d669f5c 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -161,6 +161,7 @@ def g:Test_LspShowReferences() cursor(5, 2) var bnr: number = bufnr() :LspShowReferences + sleep 100m assert_equal('quickfix', getwinvar(winnr('$'), '&buftype')) var qfl: list> = getloclist(0) assert_equal(bnr, qfl[0].bufnr) @@ -1032,6 +1033,7 @@ def g:Test_ScanFindIdent() cursor(6, 10) assert_equal([], execute('LspRename counter')->split("\n")) + sleep 100m assert_equal('int counter;', getline(1)) assert_equal(' return counter + 1;', getline(6))