Skip to content
Snippets Groups Projects
Commit 26748f9e authored by Cam Saul's avatar Cam Saul
Browse files

test for POST /api/query/:id/csv

parent 53aa644e
No related branches found
No related tags found
No related merge requests found
......@@ -213,3 +213,12 @@
(create-query)
(create-query)
((user->client :rasta) :get 200 "query" :org (:id @test-org))))
;; ## POST /api/query/:id/csv
(expect-eval-actual-first
"count(*)\n100\n"
(let [{query-id :id} (create-query)]
((user->client :rasta) :post 200 (format "query/%d" query-id))
;; 50ms should be long enough for query to finish
(Thread/sleep 50)
((user->client :rasta) :get 200 (format "query/%d/csv" query-id))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment