Fix a couple of eglot-tests
* 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).
This commit is contained in:
parent
338b3718b6
commit
f2d212c696
1 changed files with 2 additions and 1 deletions
|
@ -404,7 +404,7 @@ Pass TIMEOUT to `eglot--with-timeout'."
|
||||||
)
|
)
|
||||||
(should (eglot--tests-connect))
|
(should (eglot--tests-connect))
|
||||||
(let (register-id)
|
(let (register-id)
|
||||||
(eglot--wait-for (s-requests 1)
|
(eglot--wait-for (s-requests 3)
|
||||||
(&key id method &allow-other-keys)
|
(&key id method &allow-other-keys)
|
||||||
(setq register-id id)
|
(setq register-id id)
|
||||||
(string= method "client/registerCapability"))
|
(string= method "client/registerCapability"))
|
||||||
|
@ -801,6 +801,7 @@ int main() {
|
||||||
(ert-deftest eglot-test-json-basic ()
|
(ert-deftest eglot-test-json-basic ()
|
||||||
"Test basic autocompletion in vscode-json-languageserver."
|
"Test basic autocompletion in vscode-json-languageserver."
|
||||||
(skip-unless (executable-find "vscode-json-languageserver"))
|
(skip-unless (executable-find "vscode-json-languageserver"))
|
||||||
|
(skip-unless (fboundp 'yas-minor-mode))
|
||||||
(eglot--with-fixture
|
(eglot--with-fixture
|
||||||
'(("project" .
|
'(("project" .
|
||||||
(("p.json" . "{\"foo.b")
|
(("p.json" . "{\"foo.b")
|
||||||
|
|
Loading…
Add table
Reference in a new issue