summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp')
-rw-r--r--src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp b/src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp
index f47c899cee7..e26d4b9d26f 100644
--- a/src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp
+++ b/src/mongo/db/s/balancer/balancer_defragmentation_policy_test.cpp
@@ -630,7 +630,7 @@ TEST_F(BalancerDefragmentationPolicyTest, TestPhaseTwoChunkCanBeMovedAndMergedWi
ASSERT_EQ(biggestChunk.getShard(), moveAction.from);
ASSERT_EQ(smallestChunk.getShard(), moveAction.to);
ASSERT_BSONOBJ_EQ(biggestChunk.getMin(), moveAction.minKey);
- ASSERT_BSONOBJ_EQ(biggestChunk.getMax(), moveAction.maxKey);
+ ASSERT_BSONOBJ_EQ(biggestChunk.getMax(), *moveAction.maxKey);
auto nextAction = _defragmentationPolicy.getNextStreamingAction(operationContext());
ASSERT_TRUE(nextAction == boost::none);