Polishing

This commit is contained in:
Juergen Hoeller
2018-03-31 17:49:21 +02:00
parent 4454ffd2b1
commit 912c270f2b
6 changed files with 27 additions and 24 deletions

View File

@@ -165,8 +165,8 @@ public abstract class AbstractSchedulingTaskExecutorTests {
TestCallable task2 = new TestCallable(-1);
Future<?> future2 = executor.submit(task2);
shutdownExecutor();
future1.get();
future2.get();
future1.get(100, TimeUnit.MILLISECONDS);
future2.get(100, TimeUnit.MILLISECONDS);
}
@Test
@@ -196,8 +196,8 @@ public abstract class AbstractSchedulingTaskExecutorTests {
TestCallable task2 = new TestCallable(-1);
ListenableFuture<?> future2 = executor.submitListenable(task2);
shutdownExecutor();
future1.get();
future2.get();
future1.get(100, TimeUnit.MILLISECONDS);
future2.get(100, TimeUnit.MILLISECONDS);
}