A platform for community discussion. Free, open, simple.
FIX: flaky search-spec
Krzysztof Kotlareka6363170e9c9
diff --git a/spec/lib/search_spec.rb b/spec/lib/search_spec.rbindex 86e9992d447..6ed833283e3 100644--- a/spec/lib/search_spec.rb+++ b/spec/lib/search_spec.rb@@ -157,11 +157,11 @@ describe Search doSearchIndexer.index(user2, force: true)result = Search.execute("test", guardian: Guardian.new(user2))- expect(result.users.first.custom_data).to eq([+ expect(result.users.find { |u| u.id == user.id }.custom_data).to eq([{ name: "custom field", value: "test" },{ name: "another custom field", value: "longer test" }])- expect(result.users.last.custom_data).to eq([+ expect(result.users.find { |u| u.id == user2.id }.custom_data).to eq([{ name: "another custom field", value: "second user test" }])end