diff --git a/test/metabase/api/activity_test.clj b/test/metabase/api/activity_test.clj index b0025e789a2a18a199f8c1186d7fab4a2ce8a2cc..5e6b4792604be72c574c8749c711a2966845e380 100644 --- a/test/metabase/api/activity_test.clj +++ b/test/metabase/api/activity_test.clj @@ -19,7 +19,7 @@ ; 2. :user and :model_exists are hydrated ; NOTE: timestamp matching was being a real PITA so I cheated a bit. ideally we'd fix that -(expect-let [_ (user->client :crowberto) ; HACK. we do this to create the user-joined activity after first login before we delete it +(expect-let [client (user->client :crowberto) ; we do this to create the user-joined activity after first login before we clear out activity for the test _ (korma.core/delete Activity) ; clear out any existing activity activity1 (db/ins Activity :topic "install" @@ -98,7 +98,7 @@ :table nil :custom_id nil :details $})] - (->> ((user->client :crowberto) :get 200 "activity") + (->> (client :get 200 "activity") (map #(dissoc % :timestamp)))) @@ -157,7 +157,8 @@ :user_id user :model model :model_id model-id - :timestamp (u/new-sql-timestamp)))] + :timestamp (u/new-sql-timestamp)) + (Thread/sleep 25))] (do (create-view (user->id :crowberto) "card" (:id card2)) (create-view (user->id :crowberto) "dashboard" (:id dash1))