Skip to content

Add Mock return and test correctly set ref in CommitStatusUpdaterTest#1068

Merged
MarkEWaite merged 2 commits into
jenkinsci:masterfrom
DieAkuteSense:1010_CommitStatusUpdaterTest
May 24, 2026
Merged

Add Mock return and test correctly set ref in CommitStatusUpdaterTest#1068
MarkEWaite merged 2 commits into
jenkinsci:masterfrom
DieAkuteSense:1010_CommitStatusUpdaterTest

Conversation

@DieAkuteSense
Copy link
Copy Markdown
Contributor

Investigating a possible cause of #1010 I've noticed a missing mock return in CommitStatusUpdaterTest. Related to this, the tests verified that ref=null, which does not align with the given mock values for causeData, where the source branch is set to "feature". I've added the missing mock return statement and improved the tests to check for the correctly set ref="feature".

Unfortunately I have not found a cause for #1010 😞

IntelliJ modified the imports a lot...so the diff looks very confusing.

@MarkEWaite MarkEWaite requested a review from a team as a code owner May 24, 2026 13:35
@github-actions github-actions Bot added the tests This PR adds/removes/updates test cases label May 24, 2026
Copy link
Copy Markdown
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I resolved the issues with the imports and adapted the pull request to spotless formatting.

Test change is ready to merge.

@MarkEWaite MarkEWaite enabled auto-merge (squash) May 24, 2026 14:06
@MarkEWaite MarkEWaite merged commit c4f373e into jenkinsci:master May 24, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests This PR adds/removes/updates test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants