Don't rely on "status: starting" message in kernel restart test

This commit is contained in:
Nathaniel Nicandro 2019-03-02 19:26:32 -06:00
parent fb141f1020
commit e1f5b53fbb
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -1079,9 +1079,10 @@ last element being the newest element added to the history."
(setq restart-p t)))))
(should-not (jupyter-repl-cell-finalized-p))
(jupyter-repl-restart-kernel)
(jupyter-with-timeout (nil (* 2 jupyter-long-timeout))
;; Attempt to catch the status: starting message
(jupyter-with-timeout (nil jupyter-long-timeout)
restart-p)
(should restart-p)
(should (jupyter-kernel-info client))
(should (equal (jupyter-repl-cell-code-beginning-position) (point)))
(should-not (jupyter-repl-cell-finalized-p))
(goto-char pos)