]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Increase the delay to 1 second in the test
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 01:36:25 +0000 (17:36 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 01:36:25 +0000 (17:36 -0800)
.github/workflows/unitests.yml
test/unit_tests.vim

index 1901fed46fe0955aeceb1a5b034e11025f1fd856..89a34b58aae0c837f9d6baf9620affa6824e985e 100644 (file)
@@ -8,8 +8,6 @@ jobs:
       - name: Install packages
         run: |
           sudo apt update && sudo apt install -y clangd
-          which clangd
-          ls -ltr /usr/bin/clangd
       - name: Checkout Code
         uses: actions/checkout@v2
       - name: Setup Vim
index 6ff0b6d49a31218ab253318c8b23a297b3307c71..ab076a06d919b71a11659bd3bc6b679eeba979a0 100644 (file)
@@ -23,7 +23,7 @@ def Test_lsp_formatting()
   setline(1, ['  int i;', '  int j;'])
   :redraw!
   :LspFormat
-  :sleep 500m
+  :sleep 1
   assert_equal(['int i;', 'int j;'], getline(1, '$'))
 
   deletebufline('', 1, '$')
@@ -134,7 +134,7 @@ def Test_lsp_show_references()
   cursor(5, 2)
   var bnr: number = bufnr()
   :LspShowReferences
-  :sleep 500m
+  :sleep 1
   var qfl: list<dict<any>> = getloclist(0)
   assert_equal('quickfix', getwinvar(winnr('$'), '&buftype'))
   assert_equal(bnr, qfl[0].bufnr)
@@ -167,7 +167,7 @@ def Test_lsp_diags()
     }
   END
   setline(1, lines)
-  :sleep 500m
+  :sleep 1
   var bnr: number = bufnr()
   :redraw!
   :LspDiagShow
@@ -252,7 +252,7 @@ enddef
 # Test for LSP symbol rename
 def Test_lsp_rename()
   silent! edit Xtest.c
-  sleep 500m
+  sleep 1
   var lines: list<string> =<< trim END
     void F1(int count)
     {
@@ -267,12 +267,12 @@ def Test_lsp_rename()
     }
   END
   setline(1, lines)
-  sleep 500m
+  sleep 1
   cursor(1, 1)
   search('count')
   redraw!
   feedkeys(":LspRename\<CR>er\<CR>", "xt")
-  sleep 500m
+  sleep 1
   redraw!
   var expected: list<string> =<< trim END
     void F1(int counter)
@@ -306,14 +306,14 @@ def Test_lsp_selection()
     }
   END
   setline(1, lines)
-  sleep 500m
+  sleep 1
   # start a block-wise visual mode, LspSelectionRange should change this to
   # a characterwise visual mode.
   exe "normal! 1G\<C-V>G\"_y"
   cursor(2, 1)
   redraw!
   :LspSelectionRange
-  sleep 500m
+  sleep 1
   redraw!
   normal! y
   assert_equal('v', visualmode())
@@ -324,7 +324,7 @@ def Test_lsp_selection()
   cursor(4, 29)
   redraw!
   :LspSelectionRange
-  sleep 500m
+  sleep 1
   redraw!
   normal! y
   assert_equal('v', visualmode())