Skip to content

Commit

Permalink
repeat integrationt tests on failure, update sesman test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ikappaki committed Jul 1, 2023
1 parent e0c16a7 commit c39ec5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,7 @@ jobs:

- name: Test integration
run: |
eldev -p -dtTC test --test-type integration
# The tests occasionally fail on macos&win in what is seems to
# be GH connectivity runner issues. We attempt to address this
# problem by rerunning the tests more than once.
eldev -p -dtTC test --test-type integration || eldev -p -dtTC test --test-type integration
5 changes: 3 additions & 2 deletions test/cider-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,9 @@
(setq endpoint-bef nrepl-endpoint))

(sesman-restart)
;; wait until a new server is brought up, i.e. the port has
;; changed. It will throw if it doesn't.
;; wait until a new server is brought up by continuously checking that
;; the port has changed. If it remains the same, an exception is
;; thrown, causing the test to fail.
(nrepl-tests-poll-until (when-let ((repl (cider-current-repl)))
(with-current-buffer repl
(setq endpoint-aft nrepl-endpoint)
Expand Down

0 comments on commit c39ec5d

Please sign in to comment.