From c0d42e9cd10b3a117dd6aaa7364ed6e7e244e55e Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 16 Apr 2018 10:48:46 +0200 Subject: [PATCH] Fixed test --- .../xpack/ccr/index/engine/FollowingEngineTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/index/engine/FollowingEngineTests.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/index/engine/FollowingEngineTests.java index b70f22c44a2..a637c50cadc 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/index/engine/FollowingEngineTests.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/index/engine/FollowingEngineTests.java @@ -70,7 +70,7 @@ public class FollowingEngineTests extends ESTestCase { threadPool = new TestThreadPool("following-engine-tests"); index = new Index("index", "uuid"); shardId = new ShardId(index, 0); - primaryTerm.set(randomIntBetween(1, 8)); + primaryTerm.set(randomLongBetween(1, Long.MAX_VALUE)); } public void tearDown() throws Exception {