From 66d6ea81a03310b8f4658626a27d71adc0574b0d Mon Sep 17 00:00:00 2001 From: dickmao Date: Tue, 7 Jan 2020 17:35:21 -0500 Subject: [PATCH] stragglers from `C-x k` --- features/notebook.feature | 1 - features/step-definitions/ein-steps.el | 2 +- features/support/env.el | 8 +++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/features/notebook.feature b/features/notebook.feature index 7f2e0fc..3434d84 100644 --- a/features/notebook.feature +++ b/features/notebook.feature @@ -98,7 +98,6 @@ Scenario: Assign variable, save, kill notebook buffer, get it back, check variab And I type "b" And I wait for cell to execute Then I should see "3.1415" - And I press "C-x k" @julia Scenario: Smoke test julia diff --git a/features/step-definitions/ein-steps.el b/features/step-definitions/ein-steps.el index 2ce3086..851b339 100644 --- a/features/step-definitions/ein-steps.el +++ b/features/step-definitions/ein-steps.el @@ -316,7 +316,7 @@ (let ((was (widget-at))) (When "I press \"RET\"") (cl-loop until (not (equal was (widget-at))) - do (sleep-for 0 500)))))) + do (sleep-for 0 500)))))) (When "^I click on dir \"\\(.+\\)\"$" (lambda (dir) diff --git a/features/support/env.el b/features/support/env.el index b07a6d0..0ae22a3 100644 --- a/features/support/env.el +++ b/features/support/env.el @@ -47,8 +47,7 @@ do (cl-loop repeat 16 until done-p do (sleep-for 0 1000) - finally do (if done-p - (message "killed %s" path) + finally do (unless done-p (ein:display-warning (format "cannot close %s" path)))) do (when (or (ob-ein-anonymous-p path) (search "Untitled" path) @@ -65,7 +64,10 @@ (cl-loop for nb in it for path = (ein:$notebook-notebook-path nb) do (ein:log 'debug "Notebook %s still open" path) - finally do (assert nil)))) + finally do (assert nil))) + (let ((stragglers (file-name-all-completions "Untitled" + ein:testing-jupyter-server-root))) + (should-not stragglers))) (Setup (ein:dev-start-debug)