From de7cd8220c364dd816f4136a9d4c5a4d6618359d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 8 Mar 2018 23:06:12 -0300 Subject: Better routing and mutex --- test/clj/queue_api/test/handler.clj | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/clj/queue_api') diff --git a/test/clj/queue_api/test/handler.clj b/test/clj/queue_api/test/handler.clj index 75ce8f3..0af1b9f 100644 --- a/test/clj/queue_api/test/handler.clj +++ b/test/clj/queue_api/test/handler.clj @@ -43,9 +43,7 @@ (json-body {:agent_id "51c6324b-a176-4663-8b5f-03fc2544dbe2"}) app)] (is (= 404 (:status response)))) - (let [response (-> (request :post "/agent") - (json-body {:agent_id "644be0ce-035d-48cb-867e-8e6de2714a8d"}) - app)] + (let [response (app (request :get "/agent/644be0ce-035d-48cb-867e-8e6de2714a8d"))] (is (= 200 (:status response)))))) (deftest job-test (testing "Job route PUT" -- cgit v1.2.3