Skip to content
Permalink
Browse files
IGNITE-16420 Fix testDefaultAsyncContinuationExecutorIsForkJoinPool f…
…lakiness (#614)
  • Loading branch information
ptupitsyn committed Jan 31, 2022
1 parent 4bca20b commit 1eec6f758d11bb85922409de6b72aed46eaedf6a
Showing 1 changed file with 3 additions and 1 deletion.
@@ -138,7 +138,9 @@ public void testDefaultAsyncContinuationExecutorIsForkJoinPool() {
String threadName = client.tables().tablesAsync().thenApply(unused -> Thread.currentThread().getName()).join();

assertNull(client.configuration().asyncContinuationExecutor());
assertThat(threadName, startsWith("ForkJoinPool.commonPool-worker-"));

// Current thread is used when future completes quickly.
assertThat(threadName, either(startsWith("ForkJoinPool.commonPool-worker-")).or(equalTo(Thread.currentThread().getName())));
}

@Test

0 comments on commit 1eec6f7

Please sign in to comment.