Skip to content

Commit 0a8499b

Browse files
committed
More randomness
1 parent 9627c60 commit 0a8499b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/bulk/BulkShardOperationsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void testPrimaryTermFromFollower() throws IOException {
3737
final IndexShard followerPrimary = newStartedShard(true, settings, new FollowingEngineFactory());
3838

3939
// we use this primary on the operations yet we expect the applied operations to have the primary term of the follower
40-
final long primaryTerm = randomLongBetween(1, followerPrimary.getPrimaryTerm());
40+
final long primaryTerm = randomLongBetween(1, Integer.MAX_VALUE);
4141

4242
final Translog.Operation[] operations = new Translog.Operation[randomIntBetween(0, 127)];
4343
for (int i = 0; i < operations.length; i++) {

0 commit comments

Comments
 (0)