]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add tiny sleeps in the tests to stop them from being flaky
authorAndreas Louv <andreas@louv.dk>
Thu, 30 Mar 2023 23:02:01 +0000 (01:02 +0200)
committerAndreas Louv <andreas@louv.dk>
Thu, 30 Mar 2023 23:02:01 +0000 (01:02 +0200)
test/clangd_tests.vim

index 9148eb981a1b48f8ce10efb5ff05ae5d4fd1eeb6..d669f5c66d663ee99cf02ddf842bd2cdaa6a6ad7 100644 (file)
@@ -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<dict<any>> = 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))