Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-799

jenkins build fails because of SearchManagerTest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10
    • Fix Version/s: None
    • Component/s: Core & storage
    • Labels:
      None
    • Environment:

      Apache Jenkins buildserver
      JSPWiki 2.10

      Description

      After each SVN commit a new Jenkins build is triggered.
      The build on and off succeeds and fails for two testcases :

      testTitleSearch2(org.apache.wiki.search.SearchManagerTest)  Time elapsed: 1.168 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: no pages expected:<1> but was:<3>
              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:234)
              at junit.framework.TestCase.assertEquals(TestCase.java:401)
              at org.apache.wiki.search.SearchManagerTest.testTitleSearch2(SearchManagerTest.java:182)
      
      testTitleSearch(org.apache.wiki.search.SearchManagerTest)  Time elapsed: 0.221 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: no pages expected:<1> but was:<3>
              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:234)
              at junit.framework.TestCase.assertEquals(TestCase.java:401)
              at org.apache.wiki.search.SearchManagerTest.testTitleSearch(SearchManagerTest.java:165)
      

      This must be due to environmental issues.
      On my own laptop these tests never fail.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                metskem Harry Metske
                Reporter:
                metskem Harry Metske
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: