Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Sort ids before comparison in published-models-test (#66619)

Noah Moss60f60e1c9b3f
diff --git a/test/metabase/warehouse_schema/models/table_test.clj b/test/metabase/warehouse_schema/models/table_test.clj
index 9a0b0d2c840..f26f3d74b20 100644
--- a/test/metabase/warehouse_schema/models/table_test.clj
+++ b/test/metabase/warehouse_schema/models/table_test.clj
@@ -418,4 +418,4 @@
:model/Card {_c5 :id} {:type :metric :published_table_id t2}]
(is (= {t1 [c1 c3], t2 []}
(->> (t2/hydrate [table1 table2] :published_models)
- (u/index-by :id (comp (partial mapv :id) :published_models))))))))
+ (u/index-by :id (comp sort (partial mapv :id) :published_models))))))))