diff --git a/Directory.Packages.props b/Directory.Packages.props index 52dfbdc8b..c76c2a7e3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,12 +1,12 @@ - - - - + + + + - + @@ -29,7 +29,7 @@ - + diff --git a/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj b/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj index 6cd7ae849..6161a113e 100644 --- a/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj +++ b/test/PowerShellEditorServices.Test/PowerShellEditorServices.Test.csproj @@ -18,7 +18,7 @@ - + diff --git a/test/emacs-test.el b/test/emacs-test.el index 378c792fc..f085881c2 100644 --- a/test/emacs-test.el +++ b/test/emacs-test.el @@ -61,8 +61,12 @@ (let ((lsp (eglot-current-server))) (should (string= (eglot--project-nickname lsp) "PowerShellEditorServices")) (should (member (cons 'powershell-mode "powershell") (eglot--languages lsp)))) - (sleep-for 5) ; TODO: Wait for "textDocument/publishDiagnostics" instead (flymake-start) + ;; Wait for diagnostics to arrive instead of sleeping a fixed duration + (let ((deadline (time-add (current-time) 30))) + (while (and (time-less-p (current-time) deadline) + (null (flymake-diagnostics))) + (sleep-for 0.5))) (goto-char (point-min)) (flymake-goto-next-error) (should (eq 'flymake-warning (face-at-point))))))