From 682abb90eed6ed3752bbc931f5a9e2aa6416e2bc Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 21 Jul 2017 13:02:33 +0200 Subject: [PATCH] [TEST] Rename variable to make it less confusing --- .../java/org/elasticsearch/search/SearchServiceTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/search/SearchServiceTests.java b/core/src/test/java/org/elasticsearch/search/SearchServiceTests.java index 7bebd80512e..57ae81156ea 100644 --- a/core/src/test/java/org/elasticsearch/search/SearchServiceTests.java +++ b/core/src/test/java/org/elasticsearch/search/SearchServiceTests.java @@ -281,8 +281,8 @@ public class SearchServiceTests extends ESSingleNodeTestCase { } @Override - protected QueryBuilder doRewrite(QueryRewriteContext queryShardContext) { - if (queryShardContext.convertToShardContext() != null) { + protected QueryBuilder doRewrite(QueryRewriteContext queryRewriteContext) { + if (queryRewriteContext.convertToShardContext() != null) { throw new IllegalStateException("Fail on rewrite phase"); } return this;