-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to exceeding the 50 minute time limit, the support team was very kind by extending it to 90 minutes. For now, merging this slow tests into the same job for a fuller code coverage report. Moving to a VM instance (vs container) for a beefer machine. This had hung because some Guava tests block indefinitely on CountDownLatches. Since I had switched their tests to use a pool instead of new threads, thread starvation meant no progress could be made. Reverted to ad hoc threads and added a timeout to the awaits().
- Loading branch information
Showing
9 changed files
with
62 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ | |
|
||
import java.lang.reflect.Constructor; | ||
import java.util.concurrent.CompletableFuture; | ||
import java.util.concurrent.ForkJoinPool; | ||
import java.util.concurrent.TimeUnit; | ||
import java.util.concurrent.atomic.AtomicInteger; | ||
|
||
|
@@ -38,6 +37,7 @@ | |
|
||
import com.github.benmanes.caffeine.cache.Async.AsyncExpiry; | ||
import com.github.benmanes.caffeine.testing.Awaits; | ||
import com.github.benmanes.caffeine.testing.ConcurrentTestHarness; | ||
|
||
/** | ||
* @author [email protected] (Ben Manes) | ||
|
@@ -81,7 +81,7 @@ public void getWhenSuccessful_success(CompletableFuture<?> future) { | |
public void getWhenSuccessful_success_async() { | ||
CompletableFuture<Integer> future = new CompletableFuture<Integer>(); | ||
AtomicInteger result = new AtomicInteger(); | ||
ForkJoinPool.commonPool().execute(() -> { | ||
ConcurrentTestHarness.execute(() -> { | ||
result.set(1); | ||
result.set(Async.getWhenSuccessful(future)); | ||
}); | ||
|
@@ -94,7 +94,7 @@ public void getWhenSuccessful_success_async() { | |
public void getWhenSuccessful_fails(CompletableFuture<?> future) { | ||
if ((future != null) && !future.isDone()) { | ||
AtomicInteger result = new AtomicInteger(); | ||
ForkJoinPool.commonPool().execute(() -> { | ||
ConcurrentTestHarness.execute(() -> { | ||
result.set(1); | ||
Object value = Async.getWhenSuccessful(future); | ||
result.set((value == null) ? 2 : 3); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx384m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=0 -noverify | ||
org.gradle.daemon=false | ||
org.gradle.jvmargs=-Xmx1024m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=0 -noverify | ||
org.gradle.daemon=true | ||
nexusUsername= | ||
nexusPassword= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.