Skip to content

Commit 443921a

Browse files
committed
Minor test fix
1 parent d009986 commit 443921a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solr/core/src/test/org/apache/solr/search/numericrange/NumericRangeQParserPluginIntTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public void testInvalidFieldType() {
284284
// Query on non-IntRangeField should fail
285285
assertQEx(
286286
"Query on wrong field type should fail",
287-
"must be of type IntRangeField or LongRangeField",
287+
"must be a numeric range field type",
288288
req("q", "{!numericRange criteria=intersects field=title}[100 TO 200]"),
289289
SolrException.ErrorCode.BAD_REQUEST);
290290
}

solr/core/src/test/org/apache/solr/search/numericrange/NumericRangeQParserPluginLongTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void testInvalidFieldType() {
227227
// Query on a plain string field should fail
228228
assertQEx(
229229
"Query on wrong field type should fail",
230-
"must be of type IntRangeField or LongRangeField",
230+
"must be a numeric range field type",
231231
req("q", "{!numericRange criteria=intersects field=title}[100 TO 200]"),
232232
SolrException.ErrorCode.BAD_REQUEST);
233233
}

0 commit comments

Comments
 (0)