ScriptContextInfoSerializingTests:testEqualsAndHashcode was failing because the mutation was generating the same name. **Backport** Fixes: #50331
This commit is contained in:
parent
4396a1f78b
commit
9cdbcbd121
|
@ -56,7 +56,10 @@ public class ScriptContextInfoSerializingTests extends AbstractSerializingTestCa
|
|||
}
|
||||
|
||||
private static ScriptContextInfo mutate(ScriptContextInfo instance, Set<String> names) {
|
||||
if (names == null) { names = new HashSet<>(); }
|
||||
if (names == null) {
|
||||
names = new HashSet<>();
|
||||
names.add(instance.name);
|
||||
}
|
||||
switch (randomIntBetween(0, 2)) {
|
||||
case 0:
|
||||
return new ScriptContextInfo(
|
||||
|
|
Loading…
Reference in New Issue