mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 05:44:59 +00:00
[TEST] Fix minor random bug from #30794
This commit is contained in:
parent
b55b079a90
commit
e888467d0a
@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user