Skip to content

Commit

Permalink
Fix more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff303 committed Mar 19, 2021
1 parent 609359f commit 4430cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
(is (= 14 (.getFetchSize (.getStatement rs))))
(orig-fn driver rs rsmeta canceled-chan))]
(with-redefs [sql-jdbc.execute/reducible-rows new-fn]
(is (= [1] (-> {:query "SELECT 1"}
(mt/native-query)
(qp/process-query)))))))))))))
(is (= [[1]] (-> {:query "SELECT 1"}
(mt/native-query)
(qp/process-query)
(mt/rows)))))))))))))
4 changes: 2 additions & 2 deletions test/metabase/query_processor/reducible_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@
[2147483647]]
(process-query)))
(testing "Should work with the middleware options used by API requests as well"
(is (= [["1"]
["2147483647"]]
(is (= [[1]
[2147483647]]
(process-query :middleware @api-qp-middleware-options)))))))))))

0 comments on commit 4430cda

Please sign in to comment.