Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2221

One test doesn't pass

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.1 (Sinan)
    • Fix Version/s: 3.2 (Tycho)
    • Component/s: None
    • Labels:
      None

      Description

      I reset current version to commit b2f654d (Release 3.1). Start clear install maven goal with tests and there is one test that doesn't pass. Here is the stacktrace of failed test.

      Running TestSuite
      Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 97.916 sec <<< FAILURE! - in TestSuite
      testTasksCleanup(com.evolveum.midpoint.task.quartzimpl.CleanupTest) Time elapsed: 0.207 sec <<< FAILURE!
      java.lang.AssertionError: expected:<1> but was:<5>
      at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
      at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
      at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
      at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
      at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
      at com.evolveum.midpoint.task.quartzimpl.CleanupTest.testTasksCleanup(CleanupTest.java:99)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
      at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.run(AbstractTestNGSpringContextTests.java:172)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
      at org.testng.SuiteRunner.run(SuiteRunner.java:254)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:293)
      at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
      at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:91)
      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)

      Results :

      Failed tests:
      CleanupTest>AbstractTestNGSpringContextTests.run:172->testTasksCleanup:99 expected:<1> but was:<5>

      The same result in our CI server.
      Tests failed: 1 (1 new), passed: 514

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gubber Alexey Vashchenkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: