|
517 | 517 | (died-cb-called nil) |
518 | 518 | (jupyter-hb-max-failures 1)) |
519 | 519 | (oset channel time-to-dead 0.1) |
520 | | - (should-not (jupyter-alive-p channel)) |
521 | | - (should-not (jupyter-hb-beating-p channel)) |
522 | | - (should (oref channel paused)) |
| 520 | + (ert-info ("Initial conditions") |
| 521 | + (should-not (jupyter-alive-p channel)) |
| 522 | + (should-not (jupyter-hb-beating-p channel)) |
| 523 | + (should (oref channel paused))) |
523 | 524 | (oset channel beating t) |
524 | 525 | (jupyter-start channel) |
525 | 526 | (jupyter-hb-on-kernel-dead channel (lambda () (setq died-cb-called t))) |
526 | | - (should (jupyter-alive-p channel)) |
527 | | - ;; `jupyter-hb-unpause' needs to explicitly called |
528 | | - (should (oref channel paused)) |
| 527 | + (ert-info ("After channel start") |
| 528 | + (should (jupyter-alive-p channel)) |
| 529 | + ;; `jupyter-hb-unpause' needs to explicitly called |
| 530 | + (should (oref channel paused))) |
529 | 531 | (jupyter-hb-unpause channel) |
530 | 532 | (sleep-for 0.2) |
531 | 533 | ;; It seems the timers are run after returning from the first `sleep-for' |
532 | 534 | ;; call. |
533 | 535 | (sleep-for 0.1) |
534 | | - (should (oref channel paused)) |
535 | | - (should-not (oref channel beating)) |
536 | | - (should died-cb-called) |
537 | | - (should (jupyter-alive-p channel)) |
538 | | - (should-not (jupyter-hb-beating-p channel)))) |
| 536 | + (ert-info ("After unpausing and waiting") |
| 537 | + (should (oref channel paused)) |
| 538 | + (should-not (oref channel beating)) |
| 539 | + (should died-cb-called) |
| 540 | + (should (jupyter-alive-p channel)) |
| 541 | + (should-not (jupyter-hb-beating-p channel))))) |
539 | 542 |
|
540 | 543 | ;;; GC |
541 | 544 |
|
|
0 commit comments