Skip to content

Commit a7c1360

Browse files
committed
Fix Jetty adapter tests outside of deftest
1 parent 736c5e6 commit a7c1360

File tree

1 file changed

+14
-13
lines changed
  • ring-jetty-adapter/test/ring/adapter/test

1 file changed

+14
-13
lines changed

ring-jetty-adapter/test/ring/adapter/test/jetty.clj

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -604,16 +604,17 @@
604604
(swap! call-count inc)
605605
(raise (ex-info "unhandled exception" {})))
606606

607-
(testing "broken handler is only called once"
608-
(reset! call-count 0)
609-
(with-server broken-handler {:port test-port}
610-
(try (http/get test-url)
611-
(catch Exception _ nil))
612-
(is (= 1 @call-count))))
613-
614-
(testing "broken async handler is only called once"
615-
(reset! call-count 0)
616-
(with-server broken-handler-cps {:async? true :port test-port}
617-
(try (http/get test-url)
618-
(catch Exception _ nil))
619-
(is (= 1 @call-count))))
607+
(deftest broken-handler-test
608+
(testing "broken handler is only called once"
609+
(reset! call-count 0)
610+
(with-server broken-handler {:port test-port}
611+
(try (http/get test-url)
612+
(catch Exception _ nil))
613+
(is (= 1 @call-count))))
614+
615+
(testing "broken async handler is only called once"
616+
(reset! call-count 0)
617+
(with-server broken-handler-cps {:async? true :port test-port}
618+
(try (http/get test-url)
619+
(catch Exception _ nil))
620+
(is (= 1 @call-count)))))

0 commit comments

Comments
 (0)