]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a couple of eglot-tests
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 11 Apr 2023 06:29:49 +0000 (07:29 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 11 Apr 2023 06:40:15 +0000 (07:40 +0100)
* test/lisp/progmodes/eglot-tests.el
(eglot-test-rust-analyzer-watches-files): Bump timeout.
(eglot-test-json-basic): Check for yas-minor-mode before using it,
like other tests do (bug#61637).

test/lisp/progmodes/eglot-tests.el

index 984c1bf9916e683eec19e7b2da9e9a51f60287f1..7ce0116636df644a144befe824b16f48b23ec87b 100644 (file)
@@ -404,7 +404,7 @@ Pass TIMEOUT to `eglot--with-timeout'."
                           )
           (should (eglot--tests-connect))
           (let (register-id)
-            (eglot--wait-for (s-requests 1)
+            (eglot--wait-for (s-requests 3)
                 (&key id method &allow-other-keys)
               (setq register-id id)
               (string= method "client/registerCapability"))
@@ -801,6 +801,7 @@ int main() {
 (ert-deftest eglot-test-json-basic ()
   "Test basic autocompletion in vscode-json-languageserver."
   (skip-unless (executable-find "vscode-json-languageserver"))
+  (skip-unless (fboundp 'yas-minor-mode))
   (eglot--with-fixture
       '(("project" .
          (("p.json" . "{\"foo.b")