Skip to content

Commit dbecc8a

Browse files
committed
Fix failing integration tests
1 parent d257b3d commit dbecc8a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/Tests/Aggregations/Metric/GeoCentroid/GeoCentroidAggregationUsageTests.cs

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
using Nest;
44
using Tests.Framework.Integration;
55
using Tests.Framework.MockData;
6+
using Tests.Framework;
67

78
namespace Tests.Aggregations.Metric.GeoCentroid
89
{
910
/**
10-
* A metric aggregation that computes the weighted centroid from all coordinate values
11+
* A metric aggregation that computes the weighted centroid from all coordinate values
1112
* for a Geo-point datatype field.
12-
*
13+
*
1314
* Be sure to read the Elasticsearch documentation on {ref_current}/search-aggregations-metrics-geocentroid-aggregation.html[Geo Centroid Aggregation]
1415
*/
16+
[SkipVersion("<2.1.0", "")]
1517
public class GeoCentroidAggregationUsageTests : AggregationUsageTestBase
1618
{
1719
public GeoCentroidAggregationUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(i, usage) { }
@@ -55,11 +57,11 @@ protected override void ExpectResponse(ISearchResponse<Project> response)
5557
}
5658
}
5759

58-
/**
60+
/**
5961
*[float]
60-
*[[geo-centroid-sub-aggregation]]
61-
*== Geo Centroid Sub Aggregation
62-
*
62+
*[[geo-centroid-sub-aggregation]]
63+
*== Geo Centroid Sub Aggregation
64+
*
6365
* The `geo_centroid` aggregation is more interesting when combined as a sub-aggregation to other bucket aggregations
6466
*/
6567
public class NestedGeoCentroidAggregationUsageTests : AggregationUsageTestBase

src/Tests/Indices/MappingManagement/GetMapping/GetMappingApiTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected override void ExpectResponse(IGetMappingResponse response)
4343

4444
visitor.CountsShouldContainKeyAndCountBe("type", 1);
4545
visitor.CountsShouldContainKeyAndCountBe("object", 2);
46-
visitor.CountsShouldContainKeyAndCountBe("date", 4);
46+
visitor.CountsShouldContainKeyAndCountBe("date", 5);
4747
visitor.CountsShouldContainKeyAndCountBe("string", 17);
4848
visitor.CountsShouldContainKeyAndCountBe("ip", 1);
4949
visitor.CountsShouldContainKeyAndCountBe("number", 2);

0 commit comments

Comments
 (0)