Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357285

JSR166 Test case testShutdownNow_delayedTasks failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • core-libs

      STARTED ScheduledExecutorTest::testShutdownNow_delayedTasks 'testShutdownNow_delayedTasks'
      junit.framework.AssertionFailedError: expected:<[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@2533da72[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@270714e1[Wrapped task = JSR166TestCase$NoOpRunnable@28e19f03]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@2dcb4d2a[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@5f342528[Wrapped task = JSR166TestCase$NoOpRunnable@4ea091df]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@682e6de6[Completed normally], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@77887771[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@511f34f6[Wrapped task = JSR166TestCase$NoOpRunnable@7522b051]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@600594ec[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@bc1d6b8[Wrapped task = JSR166TestCase$NoOpRunnable@7522b051]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1610e2ab[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@41259076[Wrapped task = JSR166TestCase$NoOpRunnable@4ea091df]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@3e69d104[Completed normally], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1134025a[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@69b5b420[Wrapped task = JSR166TestCase$NoOpRunnable@28e19f03]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@5dda4664[Completed normally]]> but was:<[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@2533da72[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@270714e1[Wrapped task = JSR166TestCase$NoOpRunnable@28e19f03]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@2dcb4d2a[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@5f342528[Wrapped task = JSR166TestCase$NoOpRunnable@4ea091df]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@77887771[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@511f34f6[Wrapped task = JSR166TestCase$NoOpRunnable@7522b051]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@600594ec[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@bc1d6b8[Wrapped task = JSR166TestCase$NoOpRunnable@7522b051]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1610e2ab[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@41259076[Wrapped task = JSR166TestCase$NoOpRunnable@4ea091df]], java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1134025a[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@69b5b420[Wrapped task = JSR166TestCase$NoOpRunnable@28e19f03]]]>
      at junit.framework.Assert.fail(Assert.java:57)
      at junit.framework.Assert.failNotEquals(Assert.java:329)
      at junit.framework.Assert.assertEquals(Assert.java:78)
      at junit.framework.Assert.assertEquals(Assert.java:86)
      at junit.framework.TestCase.assertEquals(TestCase.java:246)
      at ScheduledExecutorTest.testShutdownNow_delayedTasks(ScheduledExecutorTest.java:720)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at junit.framework.TestCase.runTest(TestCase.java:177)
      at JSR166TestCase.runTest(JSR166TestCase.java:382)
      at junit.framework.TestCase.runBare(TestCase.java:142)
      at JSR166TestCase.runBare(JSR166TestCase.java:373)
      at junit.framework.TestResult$1.protect(TestResult.java:122)
      at junit.framework.TestResult.runProtected(TestResult.java:142)
      at junit.framework.TestResult.run(TestResult.java:125)
      at junit.framework.TestCase.run(TestCase.java:130)
      at junit.framework.TestSuite.runTest(TestSuite.java:241)
      at junit.framework.TestSuite.run(TestSuite.java:236)
      at junit.framework.TestSuite.runTest(TestSuite.java:241)
      at junit.framework.TestSuite.run(TestSuite.java:236)
      FAILED ScheduledExecutorTest::testShutdownNow_delayedTasks 'testShutdownNow_delayedTasks' [22168ms]

            vklang Viktor Klang
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: