Permalink
Browse files

reuse def-repl-test for ensure-server-closeable

  • Loading branch information...
1 parent 8a5dad2 commit bf7e5dc622d553d1a70f3ffc8fb2daf34489c6aa @cemerick cemerick committed Oct 3, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/test/clojure/clojure/tools/nrepl_test.clj
@@ -215,11 +215,9 @@
(.close transport)
(is (thrown? java.net.SocketException (repl-values session "5"))))
-(deftest ensure-server-closeable
- (let [server (server/start-server)]
- (connect :port (:port server))
- (.close server)
- (is (thrown? java.net.ConnectException (connect :port (:port server))))))
+(def-repl-test ensure-server-closeable
+ (.close *server*)
+ (is (thrown? java.net.ConnectException (connect :port (:port *server*)))))
; wasn't added until Clojure 1.3.0
(defn- root-cause

0 comments on commit bf7e5dc

Please sign in to comment.