From 46d129a4ea55f8a9c01e93b458fc36e67476ad58 Mon Sep 17 00:00:00 2001 From: James Dyer Date: Mon, 11 Aug 2014 14:13:56 +0000 Subject: [PATCH] SOLR-6362: fix test bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1617289 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 2 ++ .../solr/handler/dataimport/TestSqlEntityProcessorDelta.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index f167aca0597..4ab90e098be 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -346,6 +346,8 @@ Other Changes * SOLR-6360: Remove bogus "Content-Charset" header in HttpSolrServer. (Michael Ryan, Uwe Schindler) +* SOLR-6362: Fix bug in TestSqlEntityProcessorDelta. (James Dyer) + ================== 4.9.0 ================== Versions of Major Components diff --git a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java index 4fd3a61d114..574f5aa2914 100644 --- a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java +++ b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSqlEntityProcessorDelta.java @@ -127,7 +127,7 @@ public class TestSqlEntityProcessorDelta extends AbstractSqlEntityProcessorTestC } if(countryChanges!=null) { for(String code : countryChanges) { - assertQ(req("COUNTRY_CODE_s:" + code), "//*[@numFound='" + numberPeopleByCountryCode(code) + "']", "substring(//doc/str[@name='COUNTRY_NAME_s'], 1, 8)='MODIFIED'"); + assertQ(req("COUNTRY_CODE_s:" + code), "//*[@numFound='" + numberPeopleByCountryCode(code) + "']", "substring((//doc/str[@name='COUNTRY_NAME_s'])[1], 1, 8)='MODIFIED'"); } } }