summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/index_access_method_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/index_access_method_test.cpp')
-rw-r--r--src/mongo/dbtests/index_access_method_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/index_access_method_test.cpp b/src/mongo/dbtests/index_access_method_test.cpp
index 5460ce410f0..59c769d6e87 100644
--- a/src/mongo/dbtests/index_access_method_test.cpp
+++ b/src/mongo/dbtests/index_access_method_test.cpp
@@ -194,14 +194,14 @@ TEST(IndexAccessMethodSetDifference, ShouldNotReportOverlapsFromNonDisjointSets)
for (auto&& obj : diff.first) {
ASSERT(left.find(obj) != left.end());
// Make sure it's not in the intersection.
- ASSERT(obj != BSON("" << 1));
- ASSERT(obj != BSON("" << 4));
+ ASSERT_BSONOBJ_NE(obj, BSON("" << 1));
+ ASSERT_BSONOBJ_NE(obj, BSON("" << 4));
}
for (auto&& obj : diff.second) {
ASSERT(right.find(obj) != right.end());
// Make sure it's not in the intersection.
- ASSERT(obj != BSON("" << 1));
- ASSERT(obj != BSON("" << 4));
+ ASSERT_BSONOBJ_NE(obj, BSON("" << 1));
+ ASSERT_BSONOBJ_NE(obj, BSON("" << 4));
}
}