Fix testHashcodeAndEquals mutation for WaitForSnapshotStep (#51379)
This fixes the test failure, it was randomness returning the same policy rather than a new one. Switched to use `randomValueOtherThan`. Resolves #51377
This commit is contained in:
parent
9a7124027b
commit
31747de2a2
|
@ -41,7 +41,7 @@ public class WaitForSnapshotStepTests extends AbstractStepTestCase<WaitForSnapsh
|
|||
nextKey = new Step.StepKey(key.getPhase(), key.getAction(), key.getName() + randomAlphaOfLength(5));
|
||||
break;
|
||||
case 2:
|
||||
policy = randomAlphaOfLengthBetween(1, 10);
|
||||
policy = randomValueOtherThan(policy, () -> randomAlphaOfLengthBetween(1, 10));
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError("Illegal randomisation branch");
|
||||
|
|
Loading…
Reference in New Issue