summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2018-08-15 00:57:51 +0200
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-08-16 23:02:37 +0200
commit238113ff62ec1ffca2eaf19822c5aa0ac047f760 (patch)
tree5dab20de246bb5fd29aeb6688223e3bfd77a3754
parentf2ab3d36a8b535c111d78a75cda600f11860a9e9 (diff)
Update cider--close-connection test
The test assumed that any buffer added to a session will be returned, which is no longer true, as only buffers that can be mapped to a type are returned now.
-rw-r--r--test/cider-connection-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cider-connection-tests.el b/test/cider-connection-tests.el
index 21a057ff..64c08067 100644
--- a/test/cider-connection-tests.el
+++ b/test/cider-connection-tests.el
@@ -301,7 +301,12 @@
(cider-test-with-buffers
(a b)
(let ((session (list "some-session" a b)))
+ (with-current-buffer a
+ (setq cider-repl-type "clj"))
+ (with-current-buffer b
+ (setq cider-repl-type "clj"))
(sesman-register 'CIDER session)
+ (expect (cider-repls) :to-equal (list a b))
(cider--close-connection b)
(message "%S" sesman-links-alist)
(expect (buffer-live-p b) :not :to-be-truthy)