junit.framework.AssertionFailedError: Criteria not met in allotted time.

JIRA | Raphael Kubo da Costa | 4 months ago
  1. 0

    Due to some technical issues, our Crosswalk Android Tests slave was offline for about a week. https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29/builds/2080 is the first build after it went back up, and it's testing about 10 commits. As you can see, some Android tests are failing. https://github.com/crosswalk-project/crosswalk/pull/3833 reverted a big one and fixed most of them, but there's still one test that is flaky: {code} [FAIL] org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest#testOnShowCustomViewAndPlayWithHtmlControl: junit.framework.AssertionFailedError: Criteria not met in allotted time. at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74) at org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105) at org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661) {code} This test seems to have been flaky for a while. The first occurrence of the failure I could find was here: https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20(Android%20x86)/builds/2039 which obviously did not cause it. We need someone to find the source of flakiness and either revert it or fix the issue.

    JIRA | 4 months ago | Raphael Kubo da Costa
    junit.framework.AssertionFailedError: Criteria not met in allotted time.
  2. 0

    testQueryJobPostingsDeepExpandWithComplexProperty error

    GitHub | 4 years ago | ggodlewski
    junit.framework.AssertionFailedError: Timeout occurred. Please note the time in the report does not reflect the time until the timeout.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Possible bug in TeamCity JUnitUtil - Process fork failed

    YouTrack | 2 years ago
    junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
  5. 0

    JaCoCo and JMockit

    eclemma | 5 years ago | *anonymous
    junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Criteria not met in allotted time.

      at org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread()
    2. org.chromium.content
      DOMUtils.waitForMediaPlay
      1. org.chromium.content.browser.test.util.CriteriaHelper.pollInstrumentationThread(CriteriaHelper.java:74)
      2. org.chromium.content.browser.test.util.DOMUtils.waitForMediaPlay(DOMUtils.java:105)
      2 frames
    3. org.xwalk.core
      OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl
      1. org.xwalk.core.internal.xwview.test.OnShowOnHideCustomViewTest.testOnShowCustomViewAndPlayWithHtmlControl(OnShowOnHideCustomViewTest.java:64)
      1 frame
    4. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame
    5. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
      2. android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
      3. android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
      4. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:190)
      5. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:175)
      6. android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
      7. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1661)
      7 frames