A platform for community discussion. Free, open, simple.
DEV: Fix a flaky bookmarks test (#15129)
Jarek Radosz78723345c04c
diff --git a/spec/components/topic_view_spec.rb b/spec/components/topic_view_spec.rbindex 755247d2cfe..2a209e47fa6 100644--- a/spec/components/topic_view_spec.rb+++ b/spec/components/topic_view_spec.rb@@ -416,7 +416,7 @@ describe TopicView doit "gets the first post bookmark reminder at for the user" dotopic_view = TopicView.new(topic.id, user)- first, second = topic_view.bookmarks+ first, second = topic_view.bookmarks.sort_by(&:id)expect(first[:post_id]).to eq(bookmark1.post_id)expect(first[:reminder_at]).to eq_time(bookmark1.reminder_at)expect(second[:post_id]).to eq(bookmark2.post_id)