Browse Source

[TEST] reformatted comment in query tests

javanna 9 years ago
parent
commit
e154e6a758

+ 1 - 1
core/src/test/java/org/elasticsearch/index/query/RangeQueryBuilderTests.java

@@ -338,7 +338,7 @@ public class RangeQueryBuilderTests extends AbstractQueryTestCase<RangeQueryBuil
 
             // Min value was 2012-01-01 (UTC) so we need to remove one hour
             DateTime min = DateTime.parse("2012-01-01T00:00:00.000+01:00");
-            // Max value is the nowInMillis set by the uery shard context
+            // Max value is the nowInMillis set by the query shard context
             long max = context.nowInMillis();
 
             assertThat(((LegacyNumericRangeQuery) parsedQuery).getMin().longValue(), is(min.getMillis()));

+ 2 - 2
test/framework/src/main/java/org/elasticsearch/test/AbstractQueryTestCase.java

@@ -583,8 +583,8 @@ public abstract class AbstractQueryTestCase<QB extends AbstractQueryBuilder<QB>>
             context.setAllowUnmappedFields(true);
             QB firstQuery = createTestQueryBuilder();
             QB controlQuery = copyQuery(firstQuery);
-            SearchContext searchContext = getSearchContext(randomTypes, context);// only set search context for toQuery to be more realistic
-/* we use a private rewrite context here since we want the most realistic way of asserting that we are cachabel or not.
+            SearchContext searchContext = getSearchContext(randomTypes, context);
+            /* we use a private rewrite context here since we want the most realistic way of asserting that we are cacheable or not.
              * We do it this way in SearchService where
              * we first rewrite the query with a private context, then reset the context and then build the actual lucene query*/
             QueryBuilder rewritten = rewriteQuery(firstQuery, new QueryShardContext(context));