[
https://issues.apache.org/jira/browse/JSPWIKI-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18139263#comment-18139263
]
ASF subversion and git services commented on JSPWIKI-1354:
----------------------------------------------------------
Commit aaa5ea513ab7b2abc715c336d0b0a303d7a1ab88 in jspwiki's branch
refs/heads/master from spyhunter99
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=aaa5ea513 ]
Merge pull request #585 from arturobernalg/bug/JSPWIKI-1354
JSPWIKI-1354 Wait for the three pages to be indexed in a search test
> SearchManagerTest.testWildcardKeepsMatchesOfTokensHoldingUnderscores fails
> when the index is not ready
> ------------------------------------------------------------------------------------------------------
>
> Key: JSPWIKI-1354
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1354
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Arturo Bernal
> Priority: Major
> Labels: pull-request-available
>
> SearchManagerTest.testWildcardKeepsMatchesOfTokensHoldingUnderscores (added
> with JSPWIKI-501, pull request 543) failed in the check Java CI / build
> (windows-latest, 17) of pull request 565 with: expected:
> <[Blog_blogentry_021126_1, Blog_blogentry_031226_1]> but was:
> <[Blog_blogentry_031226_1]> (SearchManagerTest.java line 268).
> The test saves three pages and then waits until the search for name:blog
> finds a result, which happens as soon as the first page is indexed. The index
> is built in the background, so the other pages may not be there yet when the
> result is compared with all three. The cause comes from reading the test and
> the failure; I have not reproduced it locally.
> The test should wait until the three pages are found before it compares the
> results. I checked that SearchManagerTest passes (13 tests) with that change.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)