We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ed77d commit b4072a8Copy full SHA for b4072a8
1 file changed
core-java-modules/core-java-jvm/src/test/java/com/baeldung/error/oom/ExecutorServiceUnitTest.java
@@ -37,19 +37,4 @@ public void givenAnExecutorService_WhenMoreTasksSubmitted_ThenAdditionalTasksWai
37
assertThat(((ThreadPoolExecutor) executorService).getQueue()
38
.size(), is(equalTo(5)));
39
}
40
-
41
- @Test
42
- public void givenAnExecutorService() throws Exception {
43
44
- while (true) {
45
- TimeUnit.SECONDS.sleep(5);
46
- new Thread(() -> {
47
- try {
48
- TimeUnit.HOURS.sleep(1);
49
- } catch (InterruptedException e) {
50
- e.printStackTrace();
51
- }
52
- }).start();
53
54
55
0 commit comments