Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mutation function in JoinStatusTests #92534

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ private JoinStatus mutateJoinStatus(JoinStatus originalJoinStatus) {
return new JoinStatus(
originalJoinStatus.remoteNode(),
originalJoinStatus.term(),
randomAlphaOfLengthBetween(0, 30),
randomValueOtherThan(originalJoinStatus.message(), () -> randomAlphaOfLengthBetween(0, 30)),
originalJoinStatus.age()
);
}
case 3 -> {
return new JoinStatus(
originalJoinStatus.remoteNode(),
originalJoinStatus.term(),
randomAlphaOfLength(30),
randomNonNegativeTimeValue()
pxsalehi marked this conversation as resolved.
Show resolved Hide resolved
originalJoinStatus.message(),
ESTestCase.randomValueOtherThan(originalJoinStatus.age(), this::randomNonNegativeTimeValue)
Copy link
Member

Choose a reason for hiding this comment

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

Is the ESTestCase necessary here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, not sure why IntelliJ put that there 😕

);
}
case 4 -> {
Expand Down