Skip to content

Commit

Permalink
chore(init-tests.el): Try (package-refresh-contents) twice
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmd committed Oct 3, 2021
1 parent 094d712 commit fce8595
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/init-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@

;; Bootstrap ert-async
(unless (package-installed-p 'ert-async)
(package-refresh-contents)
(condition-case nil
(package-refresh-contents)
(error (progn
(message "Retrying in 5 secs...")
(sleep-for 5)
(package-refresh-contents))))
(package-install 'ert-async))
(eval-when-compile
(require 'ert-async))
Expand Down

0 comments on commit fce8595

Please sign in to comment.