Trivial point, but we were only testing shard generations for a single shard here, accidentally, and not testing the `null` generation case at all.
This commit is contained in:
parent
51c1b48b24
commit
53a22b8a8a
|
@ -276,7 +276,8 @@ public class RepositoryDataTests extends ESTestCase {
|
|||
for (IndexId someIndex : someIndices) {
|
||||
final int shardCount = randomIntBetween(1, 10);
|
||||
for (int j = 0; j < shardCount; ++j) {
|
||||
builder.put(someIndex, 0, UUIDs.randomBase64UUID(random()));
|
||||
final String uuid = randomBoolean() ? null : UUIDs.randomBase64UUID(random());
|
||||
builder.put(someIndex, j, uuid);
|
||||
}
|
||||
}
|
||||
repositoryData = repositoryData.addSnapshot(snapshotId, randomFrom(SnapshotState.values()), builder.build());
|
||||
|
|
Loading…
Reference in New Issue