Skip to content

Commit 238113f

Browse files
dottedmagbbatsov
authored andcommitted
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.
1 parent f2ab3d3 commit 238113f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cider-connection-tests.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,12 @@
301301
(cider-test-with-buffers
302302
(a b)
303303
(let ((session (list "some-session" a b)))
304+
(with-current-buffer a
305+
(setq cider-repl-type "clj"))
306+
(with-current-buffer b
307+
(setq cider-repl-type "clj"))
304308
(sesman-register 'CIDER session)
309+
(expect (cider-repls) :to-equal (list a b))
305310
(cider--close-connection b)
306311
(message "%S" sesman-links-alist)
307312
(expect (buffer-live-p b) :not :to-be-truthy)

0 commit comments

Comments
 (0)