Fix line length violation in cache tests
This commit fixes a line-length violation in the cache tests that was hidden by the IDE folding the generics.
This commit is contained in:
parent
2518fefa37
commit
721ee4c22a
|
@ -347,7 +347,8 @@ public class CacheTests extends ESTestCase {
|
||||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30428")
|
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30428")
|
||||||
public void testComputeIfAbsentDeadlock() throws BrokenBarrierException, InterruptedException {
|
public void testComputeIfAbsentDeadlock() throws BrokenBarrierException, InterruptedException {
|
||||||
final int numberOfThreads = randomIntBetween(2, 32);
|
final int numberOfThreads = randomIntBetween(2, 32);
|
||||||
final Cache<Integer, String> cache = CacheBuilder.<Integer, String>builder().setExpireAfterAccess(TimeValue.timeValueNanos(1)).build();
|
final Cache<Integer, String> cache =
|
||||||
|
CacheBuilder.<Integer, String>builder().setExpireAfterAccess(TimeValue.timeValueNanos(1)).build();
|
||||||
|
|
||||||
final CyclicBarrier barrier = new CyclicBarrier(1 + numberOfThreads);
|
final CyclicBarrier barrier = new CyclicBarrier(1 + numberOfThreads);
|
||||||
for (int i = 0; i < numberOfThreads; i++) {
|
for (int i = 0; i < numberOfThreads; i++) {
|
||||||
|
|
Loading…
Reference in New Issue