Skip to content

Commit

Permalink
ci: Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 8, 2022
1 parent 4131373 commit 8eb3a6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/activate.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@

(defvar timer 0)

(while (not (file-exists-p (lsp-ltex--extension-root)))
(defconst server-install-path (lsp-ltex--extension-root)
"The server install location.")

(while (not (file-exists-p server-install-path))
(sit-for 5)
(cl-incf timer 5)
(message "Waited %s..." timer))

(unless (file-exists-p (lsp-ltex--extension-root))
(error "Failed to install server: %s" (lsp-ltex--extension-root))
(unless (file-exists-p server-install-path)
(error "Failed to install server: %s" server-install-path)
(kill-emacs 1))

(message "Testing with a file...")
Expand Down

0 comments on commit 8eb3a6a

Please sign in to comment.