Skip to content

Commit

Permalink
IT LIVES!
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Apr 13, 2024
1 parent 95c5d85 commit 73e99cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/integration/apheleia-it.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

(defun apheleia-it-run-with-timer (secs function &rest args)
"Like `run-with-timer' but delays Emacs exit until done or canceled."
(push (apply #'run-with-timer secs nil function args) apheleia-it-timers))
(let ((timer (apply #'run-with-timer secs nil function args)))
(prog1 timer
(push timer apheleia-it-timers))))

(defun apheleia-it-timers-active-p ()
"Non-nil if there are any active Apheleia timers for tests.
Expand Down Expand Up @@ -104,7 +106,8 @@ asynchronous."
(cl-assert
(string=
(buffer-string)
(replace-regexp-in-string "|" "" str nil 'literal))))
(replace-regexp-in-string "|" "" str nil 'literal)))
(funcall callback nil))
(_ (error "Malformed test step `%S'" (car steps))))
(error (funcall callback err))))

Expand Down

0 comments on commit 73e99cf

Please sign in to comment.