SOLR-7912: Another attempt at fixing CloudMLTQParserTest from the original commit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1716029 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anshum Gupta 2015-11-24 05:12:46 +00:00
parent dc5249a849
commit 1af0271c67
1 changed files with 3 additions and 2 deletions

View File

@ -166,13 +166,14 @@ public class CloudMLTQParserTest extends AbstractFullDistribZkTestBase {
if(queryResponse.getDebugMap().get("parsedquery") instanceof String) {
// todo: We might run into issues here. Should think about a better way to test this.
actualParsedQueries = new String[]{(String) queryResponse.getDebugMap().get("parsedquery")};
// Skipping testing in this case for now.
// actualParsedQueries = new String[]{(String) queryResponse.getDebugMap().get("parsedquery")};
} else {
actualParsedQueries = ((ArrayList<String>) queryResponse
.getDebugMap().get("parsedquery")).toArray(new String[0]);
Arrays.sort(actualParsedQueries);
assertArrayEquals(expectedQueryStrings, actualParsedQueries);
}
assertArrayEquals(expectedQueryStrings, actualParsedQueries);
params = new ModifiableSolrParams();
// Test out a high value of df and make sure nothing matches.