Flaky spec in ee/spec/lib/gem_extensions/elasticsearch/model/adapter/active_record/records_spec.rb
Job #888076885 failed for 5800d96f:
Failures:
1) Elasticsearch::Model::Adapter::ActiveRecord::Records#records returns results in the same sorted order as they come back from Elasticsearch
Failure/Error:
expect(Issue.elastic_search('make sorting better', search_options).records.to_a).to eq([
@most_relevant,
@middle_relevant,
@least_relevant
])
expected: [#<Issue id:357 namespace909/project916#1>, #<Issue id:355 namespace907/project914#1>, #<Issue id:356 namespace908/project915#1>]
got: [#<Issue id:357 namespace909/project916#1>, #<Issue id:356 namespace908/project915#1>, #<Issue id:355 namespace907/project914#1>]
(compared using ==)
Diff:
@@ -1,4 +1,4 @@
[#<Issue id:357 namespace909/project916#1>,
- #<Issue id:355 namespace907/project914#1>,
- #<Issue id:356 namespace908/project915#1>]
+ #<Issue id:356 namespace908/project915#1>,
+ #<Issue id:355 namespace907/project914#1>]
# ./ee/spec/lib/gem_extensions/elasticsearch/model/adapter/active_record/records_spec.rb:34:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:352:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:343:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:339:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:339:in `block (2 levels) in <top (required)>'
Finished in 13 minutes 42 seconds (files took 45.06 seconds to load)
2509 examples, 1 failure, 23 pending
Failed examples:
rspec ./ee/spec/lib/gem_extensions/elasticsearch/model/adapter/active_record/records_spec.rb:33 # Elasticsearch::Model::Adapter::ActiveRecord::Records#records returns results in the same sorted order as they come back from Elasticsearch