java.lang.AssertionError: Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745>

Jenkins JIRA | Michal Turek | 3 years ago
  1. 0

    Test DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild() fails on Jenkins CloudBees service that builds code from pull requests. All tests pass including this one on my computer (64-bit Debian Testing, Java 1.7.0_21) when executed using e.g. "mvn package" so it should be somehow related to the environment. Latest stable build was in Nov 11, 2013 but it contained no tests. See https://jenkins.ci.cloudbees.com/job/plugins/job/disk-usage-plugin/ for details. {noformat} java.lang.AssertionError: Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at hudson.plugins.disk_usage.integration.DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild(DiskUsageUtilTest.java:59) 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 junit.framework.TestCase.runTest(TestCase.java:168) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:400) at junit.framework.TestCase.runBare(TestCase.java:134) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:285) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) {noformat}

    Jenkins JIRA | 3 years ago | Michal Turek
    java.lang.AssertionError: Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745>
  2. 0

    Test DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild() fails on Jenkins CloudBees service that builds code from pull requests. All tests pass including this one on my computer (64-bit Debian Testing, Java 1.7.0_21) when executed using e.g. "mvn package" so it should be somehow related to the environment. Latest stable build was in Nov 11, 2013 but it contained no tests. See https://jenkins.ci.cloudbees.com/job/plugins/job/disk-usage-plugin/ for details. {noformat} java.lang.AssertionError: Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at hudson.plugins.disk_usage.integration.DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild(DiskUsageUtilTest.java:59) 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 junit.framework.TestCase.runTest(TestCase.java:168) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:400) at junit.framework.TestCase.runBare(TestCase.java:134) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:285) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70) {noformat}

    Jenkins JIRA | 3 years ago | Michal Turek
    java.lang.AssertionError: Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745>
  3. 0

    Build failure during test run

    GitHub | 2 years ago | jens-schnufte
    java.lang.AssertionError: The warning results do not match expected:<[MessageId.PKG_012, MessageId.OPF_061, MessageId.OPF_003, MessageId.PKG_012]> but was:<[MessageId.OPF_003, MessageId.PKG_012, MessageId.OPF_061, MessageId.PKG_012]>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am getting the following assertion error in junit

    Stack Overflow | 1 year ago | user2218550
    java.lang.AssertionError: Result expected:<stu1> but was:<com.intertek.domain.StringSearchField@740edac1>
  6. 0

    [JENKINS] Lucene-Solr-NightlyTests-4.x - Build # 486 - Failure - Grokbase

    grokbase.com | 1 year ago
    java.lang.AssertionError: key:ignored_creation_date expected:<[2007-10-01T16:13:56Z]> but was:[D8574FF91B2A37BC:53D7F4191CDCA442]:0)

  1. fervidnerd 3 times, last 1 week ago
  2. davidvanlaatum 1 times, last 2 weeks ago
  3. andyglick 9 times, last 8 months ago
  4. WoodenDoors 3 times, last 9 months ago
  5. davidvanlaatum 103 times, last 9 months ago
32 unregistered visitors
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. java.lang.AssertionError

    Matrix project project1 has wrong size for its build. expected:<34746> but was:<34745>

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:93)
    2. org.junit.Assert.failNotEquals(Assert.java:647)
    3. org.junit.Assert.assertEquals(Assert.java:128)
    3 frames
  3. hudson.plugins.disk_usage
    DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild
    1. hudson.plugins.disk_usage.integration.DiskUsageUtilTest.testCalculateDiskUsageForMatrixBuild(DiskUsageUtilTest.java:59)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. JUnit
    TestCase.runTest
    1. junit.framework.TestCase.runTest(TestCase.java:168)
    1 frame
  6. Hudson :: Test Framework
    HudsonTestCase.runTest
    1. org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:400)
    1 frame
  7. JUnit
    TestCase.runBare
    1. junit.framework.TestCase.runBare(TestCase.java:134)
    1 frame
  8. Hudson :: Test Framework
    HudsonTestCase.runBare
    1. org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:285)
    1 frame
  9. JUnit
    JUnit38ClassRunner.run
    1. junit.framework.TestResult$1.protect(TestResult.java:110)
    2. junit.framework.TestResult.runProtected(TestResult.java:128)
    3. junit.framework.TestResult.run(TestResult.java:113)
    4. junit.framework.TestCase.run(TestCase.java:124)
    5. junit.framework.TestSuite.runTest(TestSuite.java:243)
    6. junit.framework.TestSuite.run(TestSuite.java:238)
    7. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    7 frames
  10. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    3 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  12. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
    5 frames