From e888467d0a7af4115789d08e4cd96bb98375968e Mon Sep 17 00:00:00 2001 From: Albert Zaharovits Date: Sun, 27 May 2018 19:59:49 +0300 Subject: [PATCH] [TEST] Fix minor random bug from #30794 --- .../test/java/org/elasticsearch/common/cache/CacheTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java b/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java index 3b183cce40b..a2e47e6c60f 100644 --- a/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java +++ b/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java @@ -471,7 +471,7 @@ public class CacheTests extends ESTestCase { keys.add(key); } else { // invalidate with incorrect value - cache.invalidate(key, Integer.toString(key * randomIntBetween(2, 10))); + cache.invalidate(key, Integer.toString(key + randomIntBetween(2, 10))); } } } @@ -506,7 +506,7 @@ public class CacheTests extends ESTestCase { invalidated.add(i); } else { // invalidate with incorrect value - cache.invalidate(i, Integer.toString(i * randomIntBetween(2, 10))); + cache.invalidate(i, Integer.toString(i + randomIntBetween(2, 10))); } } }