Browse files

fix singleton fixture

  • Loading branch information...
1 parent ddd210f commit 02a6bb3f0803c2559ba24744f9637e25f85e9c0c @dakrone committed Mar 7, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 test/clj_http/test/support.clj
View
13 test/clj_http/test/support.clj
@@ -62,9 +62,10 @@
(ring/run-jetty handler {:port 18080 :join? false})))
(singleton-fixture
- (defn server-fixture [f]
- (println "[+++] Starting Jetty test server")
- (let [server (ring/run-jetty handler {:port 18080 :join? false})]
- (when f (f))
- (println "[---] Stopping Jetty test server")
- (.stop server))))
+ (def server-fixture
+ (singleton-fixture
+ (fn [f]
+ (println "[+++] Starting Jetty test server")
+ (let [server (ring/run-jetty handler {:port 18080 :join? false})]
+ (when f (f))
+ (println "[---] Stopping Jetty test server"))))))

0 comments on commit 02a6bb3

Please sign in to comment.