aboutsummaryrefslogtreecommitdiff
path: root/test/clj
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2018-03-08 23:06:12 -0300
committerGabriel A. Giovanini <mail@gabrielgio.me>2018-03-08 23:06:12 -0300
commitde7cd8220c364dd816f4136a9d4c5a4d6618359d (patch)
tree8de2745e1d6d63d020330ad71f8bc6fe5e37db08 /test/clj
parentb9e1725e4f9bebce7e426431a1f8524efd026662 (diff)
downloadqueue-api-de7cd8220c364dd816f4136a9d4c5a4d6618359d.tar.gz
queue-api-de7cd8220c364dd816f4136a9d4c5a4d6618359d.tar.bz2
queue-api-de7cd8220c364dd816f4136a9d4c5a4d6618359d.zip
Better routing and mutex
Diffstat (limited to 'test/clj')
-rw-r--r--test/clj/queue_api/test/handler.clj4
1 files changed, 1 insertions, 3 deletions
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"