From 872f1dbbc43cd0efcd9e6bc27178ae94ca6698bb Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Fri, 7 Sep 2018 23:35:55 +0300 Subject: [PATCH] fix interceptor tests --- test/cljc/reitit/interceptor_test.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cljc/reitit/interceptor_test.cljc b/test/cljc/reitit/interceptor_test.cljc index cecc7a8a..639db51d 100644 --- a/test/cljc/reitit/interceptor_test.cljc +++ b/test/cljc/reitit/interceptor_test.cljc @@ -111,21 +111,21 @@ (let [app (create [[i1 :value]])] (dotimes [_ 10] (is (= [:data :value :ok] (app ctx))) - (is (= 2 @calls))))) + (is (= 1 @calls))))) (testing "as interceptor" (reset! calls 0) (let [app (create [(i1 :value)])] (dotimes [_ 10] (is (= [:data :value :ok] (app ctx))) - (is (= 2 @calls))))) + (is (= 1 @calls))))) (testing "deeply compiled interceptor" (reset! calls 0) (let [app (create [[i3 :value]])] (dotimes [_ 10] (is (= [:data :value :ok] (app ctx))) - (is (= 4 @calls))))) + (is (= 3 @calls))))) (testing "too deeply compiled interceptor fails" (binding [interceptor/*max-compile-depth* 2]