Prevent testing on double values whose toString may use the scientific notation.

This might break query parsers because the standard analyzer splits on
punctuation.
This commit is contained in:
Adrien Grand 2016-11-30 16:46:56 +01:00
parent eed5de20e0
commit 34e682d3bc
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ public abstract class AbstractQueryTestCase<QB extends AbstractQueryBuilder<QB>>
value = randomIntBetween(0, 10);
break;
case DOUBLE_FIELD_NAME:
value = randomDouble() * 10;
value = 1 + randomDouble() * 9;
break;
case BOOLEAN_FIELD_NAME:
value = randomBoolean();