Skip to content

Commit 2e45228

Browse files
committed
Reduce intermittent failures during testing
* test/jupyter-test.el (jupyter-hb-channel): Use `jupyter-with-timeout`.
1 parent f67cccd commit 2e45228

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/jupyter-test.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,8 @@
529529
;; `jupyter-hb-unpause' needs to explicitly called
530530
(should (oref channel paused)))
531531
(jupyter-hb-unpause channel)
532-
(sleep-for 0.2)
533-
;; It seems the timers are run after returning from the first `sleep-for'
534-
;; call.
535-
(sleep-for 0.1)
532+
(jupyter-with-timeout (nil jupyter-long-timeout)
533+
(oref channel paused))
536534
(ert-info ("After unpausing and waiting")
537535
(should (oref channel paused))
538536
(should-not (oref channel beating))

0 commit comments

Comments
 (0)