Ensure lock files are enabled when testing them

This commit is contained in:
Nathaniel Nicandro 2018-10-02 12:47:51 -05:00
parent 394a82a5c2
commit 603ab12444

View file

@ -272,6 +272,7 @@ running BODY."
(ert-deftest jupyter-channel-subprocess-lock ()
(ert-info ("Locking and unlocking a file")
(with-temp-buffer
(let ((create-lockfiles t))
(setq buffer-file-name (expand-file-name "jupyter-lock-test")
buffer-file-truename (file-truename buffer-file-name))
(should (not (file-exists-p buffer-file-name)))
@ -280,7 +281,7 @@ running BODY."
(should (file-locked-p buffer-file-name))
(set-buffer-modified-p nil)
(should (not (file-locked-p buffer-file-name)))
(should (not (file-exists-p buffer-file-name)))))
(should (not (file-exists-p buffer-file-name))))))
(ert-info ("`jupyter--ioloop-lock-file'")
(let ((client (jupyter-kernel-client)))
;; Lock file names are based on session IDs