Skip to content
Snippets Groups Projects
Commit e1929ea9 authored by Ryan Senior's avatar Ryan Senior
Browse files

Fix breakout test failure on MySQL

The issue only shows up in Circle CI and appears to be related to
MySQL there returning java.lang.Float values instead of
doubles. Converting these to doubles (via round-to-decimals) before
comparing fixes the issue.
parent 4c7d022f
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,8 @@
(tt/with-temp* [Database [database {:details (:details (Database (id))), :engine :h2}]
Table [table {:db_id (u/get-id database), :name "VENUES"}]]
(sync-table! table)
[(db/select-one-field :min_value Field, :id (id :venues :longitude))
(db/select-one-field :max_value Field, :id (id :venues :longitude))
(db/select-one-field :min_value Field, :id (id :venues :latitude))
(db/select-one-field :max_value Field, :id (id :venues :latitude))]))
(map #(u/round-to-decimals 4 %)
[(db/select-one-field :min_value Field, :id (id :venues :longitude))
(db/select-one-field :max_value Field, :id (id :venues :longitude))
(db/select-one-field :min_value Field, :id (id :venues :latitude))
(db/select-one-field :max_value Field, :id (id :venues :latitude))])))
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