Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7039

HistoricProcessInstanceTest fails sometimes on the MySQL database

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.6.0
    • engine

      The test HistoricProcessInstanceTest fails sometimes on the mysql unit tests, especially testHistoricProcessInstanceStartDate.

      Failing job log:

      org.camunda.bpm.engine.test.history.HistoricProcessInstanceTest.testHistoricProcessInstanceStartDate
      
      Error Message
      
      expected:<0> but was:<1>
      Stacktrace
      
      junit.framework.AssertionFailedError: expected:<0> but was:<1>
      	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:159)
      	at junit.framework.Assert.assertEquals(Assert.java:166)
      	at junit.framework.TestCase.assertEquals(TestCase.java:324)
      	at org.camunda.bpm.engine.test.history.HistoricProcessInstanceTest.testHistoricProcessInstanceStartDate(HistoricProcessInstanceTest.java:173)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at junit.framework.TestCase.runTest(TestCase.java:176)
      	at junit.framework.TestCase.runBare(TestCase.java:141)
      	at org.camunda.bpm.engine.impl.test.AbstractProcessEngineTestCase.runBare(AbstractProcessEngineTestCase.java:108)
      	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:129)
      	at junit.framework.TestSuite.runTest(TestSuite.java:255)
      	at junit.framework.TestSuite.run(TestSuite.java:250)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Standard Output
      
      12:37:41.945 [main] DEBUG org.camunda.bpm.engine.test - annotation @Deployment creates deployment for HistoricProcessInstanceTest.testHistoricProcessInstanceStartDate
      12:37:42.019 [main] ERROR org.camunda.bpm.engine.test - ASSERTION FAILED: junit.framework.AssertionFailedError: expected:<0> but was:<1>
      junit.framework.AssertionFailedError: expected:<0> but was:<1>
      	at junit.framework.Assert.fail(Assert.java:57) ~[junit-4.11.jar:na]
      	at junit.framework.Assert.failNotEquals(Assert.java:329) ~[junit-4.11.jar:na]
      	at junit.framework.Assert.assertEquals(Assert.java:78) ~[junit-4.11.jar:na]
      	at junit.framework.Assert.assertEquals(Assert.java:159) ~[junit-4.11.jar:na]
      	at junit.framework.Assert.assertEquals(Assert.java:166) ~[junit-4.11.jar:na]
      	at junit.framework.TestCase.assertEquals(TestCase.java:324) [junit-4.11.jar:na]
      	at org.camunda.bpm.engine.test.history.HistoricProcessInstanceTest.testHistoricProcessInstanceStartDate(HistoricProcessInstanceTest.java:173) ~[test-classes/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_45]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_45]
      	at junit.framework.TestCase.runTest(TestCase.java:176) [junit-4.11.jar:na]
      	at junit.framework.TestCase.runBare(TestCase.java:141) [junit-4.11.jar:na]
      	at org.camunda.bpm.engine.impl.test.AbstractProcessEngineTestCase.runBare(AbstractProcessEngineTestCase.java:108) ~[classes/:na]
      	at junit.framework.TestResult$1.protect(TestResult.java:122) [junit-4.11.jar:na]
      	at junit.framework.TestResult.runProtected(TestResult.java:142) [junit-4.11.jar:na]
      	at junit.framework.TestResult.run(TestResult.java:125) [junit-4.11.jar:na]
      	at junit.framework.TestCase.run(TestCase.java:129) [junit-4.11.jar:na]
      	at junit.framework.TestSuite.runTest(TestSuite.java:255) [junit-4.11.jar:na]
      	at junit.framework.TestSuite.run(TestSuite.java:250) [junit-4.11.jar:na]
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) [junit-4.11.jar:na]
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) [surefire-junit4-2.16.jar:2.16]
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) [surefire-junit4-2.16.jar:2.16]
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) [surefire-junit4-2.16.jar:2.16]
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) [surefire-booter-2.16.jar:2.16]
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [surefire-booter-2.16.jar:2.16]
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [surefire-booter-2.16.jar:2.16]
      12:37:42.019 [main] DEBUG org.camunda.bpm.engine.test - annotation @Deployment deletes deployment for HistoricProcessInstanceTest.testHistoricProcessInstanceStartDate
      12:37:42.036 [main] DEBUG org.camunda.bpm.engine.test - Deployment cache was clean
      12:37:42.037 [main] DEBUG org.camunda.bpm.engine.test - verifying that db is clean after test
      12:37:42.042 [main] DEBUG org.camunda.bpm.engine.test - Database was clean
      

      @Hint from sebastian.menski:
      Could be a problem with milliseconds, since mysql does not support ms

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              christopher.zell Christopher Kujawa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: