Skip to content

Commit

Permalink
Fix line length violation in cache tests
Browse files Browse the repository at this point in the history
This commit fixes a line-length violation in the cache tests that was
hidden by the IDE folding the generics.
  • Loading branch information
jasontedor committed May 7, 2018
1 parent 37e5fcd commit f835fad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ protected long now() {
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30428")
public void testComputeIfAbsentDeadlock() throws BrokenBarrierException, InterruptedException {
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);
for (int i = 0; i < numberOfThreads; i++) {
Expand Down

0 comments on commit f835fad

Please sign in to comment.