summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/balancer/cluster_statistics_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/balancer/cluster_statistics_test.cpp')
-rw-r--r--src/mongo/db/s/balancer/cluster_statistics_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/s/balancer/cluster_statistics_test.cpp b/src/mongo/db/s/balancer/cluster_statistics_test.cpp
index 905943551cb..25bd0bb804d 100644
--- a/src/mongo/db/s/balancer/cluster_statistics_test.cpp
+++ b/src/mongo/db/s/balancer/cluster_statistics_test.cpp
@@ -40,9 +40,12 @@ using ShardStatistics = ClusterStatistics::ShardStatistics;
const auto emptyTagSet = std::set<std::string>();
TEST(ShardStatistics, SizeMaxedTest) {
- ASSERT(!ShardStatistics(ShardId("TestShardId"), 0, 0, false, emptyTagSet).isSizeMaxed());
- ASSERT(!ShardStatistics(ShardId("TestShardId"), 100LL, 80LL, false, emptyTagSet).isSizeMaxed());
- ASSERT(ShardStatistics(ShardId("TestShardId"), 100LL, 110LL, false, emptyTagSet).isSizeMaxed());
+ ASSERT(
+ !ShardStatistics(ShardId("TestShardId"), 0, 0, false, emptyTagSet, "3.2.0").isSizeMaxed());
+ ASSERT(!ShardStatistics(ShardId("TestShardId"), 100LL, 80LL, false, emptyTagSet, "3.2.0")
+ .isSizeMaxed());
+ ASSERT(ShardStatistics(ShardId("TestShardId"), 100LL, 110LL, false, emptyTagSet, "3.2.0")
+ .isSizeMaxed());
}
} // namespace