Skip to content

Commit 2997425

Browse files
committed
down to 11 test failures
1 parent d0ed9c6 commit 2997425

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/java/org/apache/lucene/server/handlers/BulkAddDocumentHandler.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ private void _indexSplitDoc() {
189189
}
190190

191191
// At most one document spans across two chunks:
192-
assert parser.getCurrentLocation().getCharOffset() == allChars.length-1: " parser location=" + parser.getCurrentLocation().getCharOffset() + " vs " + allChars.length + " tail: " + new String(allChars, allChars.length-20, 20);
192+
// nocommit hmm why did the "-1" need to be removed on upgrade!? i didn't upgrade Jackson (yet):
193+
// assert parser.getCurrentLocation().getCharOffset() == allChars.length-1: " parser location=" + parser.getCurrentLocation().getCharOffset() + " vs " + allChars.length + " tail: " + new String(allChars, allChars.length-20, 20);
194+
assert parser.getCurrentLocation().getCharOffset() == allChars.length: " parser location=" + parser.getCurrentLocation().getCharOffset() + " vs " + allChars.length + " tail: " + new String(allChars, allChars.length-20, 20);
193195
}
194196
}
195197

src/test/org/apache/lucene/server/TestAnalysis.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void testNonExistentCharFilter() throws Exception {
102102
assertFailsWith("analyze",
103103
"{text: abc, analyzer: {charFilters: [Bad], tokenizer: Whitespace}}",
104104
"analyze > analyzer > charFilters[0]",
105-
"A SPI class of type org.apache.lucene.analysis.util.CharFilterFactory with name 'Bad' does not exist");
105+
"A SPI class of type org.apache.lucene.analysis.CharFilterFactory with name 'Bad' does not exist");
106106
}
107107

108108
public void testPatternReplaceCharFilter() throws Exception {

src/test/org/apache/lucene/server/TestIndexing.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void testBulkAddDocument2() throws Exception {
230230
assertEquals(100, result.get("indexedDocumentCount"));
231231
long indexGen = getLong(result, "indexGen");
232232
JSONObject r = send("search", "{indexName: bulk2, searcher: {indexGen: " + indexGen + "}, queryText: \"99\", facets: [{dim: dateFacet, topN: 10}], retrieveFields: [id, date, price, {field: body, highlight: snippets}]}");
233-
assertEquals(1, ((Integer) r.get("totalHits.value")).intValue());
233+
assertEquals(1, getInt(r, "totalHits.value"));
234234
send("deleteIndex");
235235
}
236236

0 commit comments

Comments
 (0)