[TEST] Fix internalMatrixStatsTests failure

This commit is contained in:
Colin Goodheart-Smithe 2017-08-02 16:36:11 +01:00
parent 0401df81e0
commit bb3d5b7426
No known key found for this signature in database
GPG Key ID: F975E7BDD739B3C7
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ public class InternalMatrixStatsTests extends InternalAggregationTestCase<Intern
name += randomAlphaOfLength(5);
break;
case 1:
String[] fields = Arrays.copyOf(this.fields, this.fields.length + 1);
fields[fields.length - 1] = "field_" + (fields.length - 1);
double[] values = new double[fields.length];
for (int i = 0; i < fields.length; i++) {
values[i] = randomDouble() * 200;