[Test] Fix InternalStatsTests

After recent changes in InternalStats#doXContentBody the corresponding xContent
output of the parsed aggregation needed to be changed in a similar way.
This commit is contained in:
Christoph Büscher 2017-11-03 11:17:08 +01:00
parent d503782699
commit 9abc26ee92
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class ParsedStats extends ParsedAggregation implements Stats {
builder.nullField(Fields.MIN);
builder.nullField(Fields.MAX);
builder.nullField(Fields.AVG);
builder.nullField(Fields.SUM);
builder.field(Fields.SUM, 0.0d);
}
otherStatsToXContent(builder, params);
return builder;