org.junit.runners.model.TestTimedOutException: test timed out after 10000 milliseconds

GitHub | kthoms | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ServerLauncherTest fails with timeout

    GitHub | 6 months ago | kthoms
    org.junit.runners.model.TestTimedOutException: test timed out after 10000 milliseconds

    Root Cause Analysis

    1. org.junit.runners.model.TestTimedOutException

      test timed out after 10000 milliseconds

      at sun.misc.Unsafe.park()
    2. Java RT
      CompletableFuture.get
      1. sun.misc.Unsafe.park(Native Method)
      2. java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      3. java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
      4. java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
      5. java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
      6. java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
      6 frames
    3. org.eclipse.xtext
      ServerLauncherTest.testServerLaunch
      1. org.eclipse.xtext.ide.tests.server.ServerLauncherTest.testServerLaunch(ServerLauncherTest.java:78)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. JUnit
      FailOnTimeout$CallableStatement.call
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
      6. org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
      6 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.lang.Thread.run(Thread.java:745)
      2 frames