From f98790ac57c2def691cdf64d3b6ee4b4b6e86713 Mon Sep 17 00:00:00 2001 From: Tom Robinson <tlrobinson@gmail.com> Date: Wed, 5 Feb 2020 22:42:01 -0800 Subject: [PATCH] Fix 200/202 test --- test/metabase/api/embed_test.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/metabase/api/embed_test.clj b/test/metabase/api/embed_test.clj index 514ee9f9288..f8fe1a4fd22 100644 --- a/test/metabase/api/embed_test.clj +++ b/test/metabase/api/embed_test.clj @@ -209,8 +209,9 @@ :type :native :native {:query "SELECT * FROM XYZ"}}}] ;; since results are keepalive-streamed for normal queries (i.e., not CSV, JSON, or XLSX) we have to return a - ;; status code right away, so streaming responses always return 200 - (http/client :get (if (seq response-format) 400 200) (card-query-url card response-format)))))) + ;; status code right away, so streaming responses always return 202 and the actual status code is returned + ;; in the _status property of the response body + (http/client :get (if (seq response-format) 400 202) (card-query-url card response-format)))))) ;; check that the endpoint doesn't work if embedding isn't enabled (expect-for-response-formats [response-format] -- GitLab