Flaky spec in `spec/lib/gitlab/search_results_spec.rb` | Gitlab::SearchResults as a user with access #objects uses page and per_page to paginate results
Summary
Job #726198038 failed for 52a3a978:
Trace
Failures:
1) Gitlab::SearchResults as a user with access #objects uses page and per_page to paginate results
Failure/Error: expect(results.objects('projects', page: 1, per_page: 1).to_a).to eq([project])
expected: [#<Project id:563 namespace457/foo>>]
got: [#<Project id:569 namespace462/foo>>]
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-[#<Project id:563 namespace457/foo>>]
+[#<Project id:569 namespace462/foo>>]
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:97:in `block in <module:Support>'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:106:in `notify_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:38:in `handle_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:27:in `with_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/expectation_target.rb:65:in `to'
# ./spec/lib/gitlab/search_results_spec.rb:35:in `block (4 levels) in <top (required)>'