A platform for community discussion. Free, open, simple.
FIX: change `eq` to `match_array` in `topic_tags_changed_spec.rb` to solve flaky test (#28640)
Gabriel Grubba0c9c7482b5e9
diff --git a/plugins/automation/spec/triggers/topic_tags_changed_spec.rb b/plugins/automation/spec/triggers/topic_tags_changed_spec.rbindex d337ca0a0ef..07c34a8dbdd 100644--- a/plugins/automation/spec/triggers/topic_tags_changed_spec.rb+++ b/plugins/automation/spec/triggers/topic_tags_changed_spec.rb@@ -149,7 +149,7 @@ describe DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED doexpect(list.length).to eq(1)expect(list[0]["kind"]).to eq(DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED)- expect(list[0]["added_tags"]).to eq([bad_tag.name, another_tag.name])+ expect(list[0]["added_tags"]).to match_array([bad_tag.name, another_tag.name])expect(list[0]["removed_tags"]).to eq([cool_tag.name])end