You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2016/09/02 12:32:20 UTC

[jira] [Commented] (OAK-4701) Test failure: SolrIndexQueryTestIT.testRepSimilarXPathQuery

    [ https://issues.apache.org/jira/browse/OAK-4701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458402#comment-15458402 ] 

Thomas Mueller commented on OAK-4701:
-------------------------------------

Possible patch (couldn't test):

{noformat}
--- src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/query/SolrIndexQueryTestIT.java	(revision 1747178)
+++ src/test/java/org/apache/jackrabbit/oak/plugins/index/solr/query/SolrIndexQueryTestIT.java	(working copy)
@@ -286,7 +286,7 @@
 
     @Test
     public void testRepSimilarXPathQuery() throws Exception {
-        String query = "//element(*, nt:base)[rep:similar(., '/test/a')]";
+        String query = "/jcr:root/test/element(*, nt:base)[rep:similar(., '/test/a')]";
         Tree test = root.getTree("/").addChild("test");
         test.addChild("a").setProperty("text", "the quick brown fox jumped over the lazy white dog");
         test.addChild("b").setProperty("text", "I am a dog");
{noformat}

> Test failure: SolrIndexQueryTestIT.testRepSimilarXPathQuery
> -----------------------------------------------------------
>
>                 Key: OAK-4701
>                 URL: https://issues.apache.org/jira/browse/OAK-4701
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: solr
>    Affects Versions: 1.2
>            Reporter: Michael Dürig
>
> This consistently fails for the 1.2 branch only on Jenkins:
> {code}
> testRepSimilarXPathQuery(org.apache.jackrabbit.oak.plugins.index.solr.query.SolrIndexQueryTestIT)  Time elapsed: 1.564 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:</[test/b]> but was:</[oak:index/uuid]>
> 	at junit.framework.Assert.assertEquals(Assert.java:100)
> 	at junit.framework.Assert.assertEquals(Assert.java:107)
> 	at org.apache.jackrabbit.oak.plugins.index.solr.query.SolrIndexQueryTestIT.testRepSimilarXPathQuery(SolrIndexQueryTestIT.java:302)
> {code}
> See e.g. https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/1117/
> /cc [~tmueller]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)