From b52418c44803a4e87c8adfac565238735d3ac05f Mon Sep 17 00:00:00 2001 From: Andy Jordan Date: Tue, 27 Sep 2022 12:35:15 -0700 Subject: [PATCH] Fix Emacs unit test The Eglot package updated and this is now a list. --- test/emacs-test.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/emacs-test.el b/test/emacs-test.el index 88b3d1a50..ce09d5ab5 100644 --- a/test/emacs-test.el +++ b/test/emacs-test.el @@ -58,7 +58,7 @@ (should (eglot-current-server)) (let ((lsp (eglot-current-server))) (should (string= (oref lsp project-nickname) "PowerShellEditorServices")) - (should (eq (oref lsp major-mode) 'powershell-mode)) + (should (member 'powershell-mode (oref lsp major-modes))) (should (string= (oref lsp language-id) "powershell"))) (sleep-for 5) ; TODO: Wait for "textDocument/publishDiagnostics" instead (flymake-start)