Transient failure in spec/helpers/award_emoji_helper_spec.rb
As seen in https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/21808884:
AwardEmojiHelper
.toggle_award_url
note on personal snippet
returns correct url
note on project item
returns correct url
personal snippet
returns correct url
merge request
RSpec::Retry: 2nd try ./spec/helpers/award_emoji_helper_spec.rb:40
returns correct url (FAILED - 1)
issue
returns correct url
and
1) AwardEmojiHelper.toggle_award_url merge request returns correct url
Failure/Error: expect(helper.toggle_award_url(merge_request)).to eq(expected_url)
expected: "/namespace930/gitlabhq/merge_requests/2/toggle_award_emoji"
got: "/namespace930/gitlabhq/merge_requests/1/toggle_award_emoji"
(compared using ==)
# ./spec/helpers/award_emoji_helper_spec.rb:45:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:97:in `block (2 levels) in <top (required)>'
Finished in 44 minutes 52 seconds (files took 24.76 seconds to load)
1272 examples, 1 failure
Failed examples:
rspec ./spec/helpers/award_emoji_helper_spec.rb:40 # AwardEmojiHelper.toggle_award_url merge request returns correct url
I think the MR ID changes when retrying the example. Not sure this fails on the first attempt, though.