Skip to content

Commit

Permalink
Reduce intermittent failures during testing
Browse files Browse the repository at this point in the history
* test/jupyter-test.el (jupyter-hb-channel): Use `jupyter-with-timeout`.
  • Loading branch information
nnicandro committed Nov 18, 2024
1 parent 95dd752 commit ba2b1b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/jupyter-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,8 @@
;; `jupyter-hb-unpause' needs to explicitly called
(should (oref channel paused)))
(jupyter-hb-unpause channel)
(sleep-for 0.2)
;; It seems the timers are run after returning from the first `sleep-for'
;; call.
(sleep-for 0.1)
(jupyter-with-timeout (nil jupyter-long-timeout)
(oref channel paused))
(ert-info ("After unpausing and waiting")
(should (oref channel paused))
(should-not (oref channel beating))
Expand Down

0 comments on commit ba2b1b1

Please sign in to comment.