Flaky spec 'spec/models/issue_spec.rb:1221' # Issue.public_only when feature flag is disabled returns public and hidden issues
Job #1715021634 failed for e8a3bdb7:
Failures:
1) Issue.public_only when feature flag is disabled returns public and hidden issues
Failure/Error: expect(described_class.public_only).to eq([public_issue, hidden_issue])
expected: [#<Issue id:544 namespace301/project76#1>, #<Issue id:546 namespace301/project76#3>]
got: #<ActiveRecord::Relation [#<Issue id:546 namespace301/project76#3>, #<Issue id:544 namespace301/project76#1>]>
(compared using ==)
Diff:
@@ -1,3 +1,3 @@
-[#<Issue id:544 namespace301/project76#1>,
- #<Issue id:546 namespace301/project76#3>]
+[#<Issue id:546 namespace301/project76#3>,
+ #<Issue id:544 namespace301/project76#1>]
# ./spec/models/issue_spec.rb:1222:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:408:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:395:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:395:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
Finished in 24 minutes 55 seconds (files took 1 minute 14.99 seconds to load)
4823 examples, 1 failure, 2 pending
Failed examples:
rspec ./spec/models/issue_spec.rb:1221 # Issue.public_only when feature flag is disabled returns public and hidden issues