test: better fix for: 78d2311c5fd502088bd00625956326834538c785

This commit is contained in:
Martijn van Groningen 2016-04-06 22:23:00 +02:00
parent ec4ebf31b0
commit 63261f14d4

View File

@ -76,7 +76,7 @@ public class MatchQueryBuilderTests extends AbstractQueryTestCase<MatchQueryBuil
matchQuery.analyzer(randomFrom("simple", "keyword", "whitespace"));
}
if (randomBoolean()) {
if (fieldName.equals(BOOLEAN_FIELD_NAME) == false && randomBoolean()) {
matchQuery.fuzziness(randomFuzziness(fieldName));
}