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:
Lee Hinman 2020-01-23 15:46:22 -07:00 committed by Lee Hinman
parent 9a7124027b
commit 31747de2a2
1 changed files with 1 additions and 1 deletions

View File

@ -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");