summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/mutable_bson_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/mutable/mutable_bson_test.cpp')
-rw-r--r--src/mongo/bson/mutable/mutable_bson_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/bson/mutable/mutable_bson_test.cpp b/src/mongo/bson/mutable/mutable_bson_test.cpp
index 58a46d04ce3..7e215379cb8 100644
--- a/src/mongo/bson/mutable/mutable_bson_test.cpp
+++ b/src/mongo/bson/mutable/mutable_bson_test.cpp
@@ -545,9 +545,9 @@ TEST(ArrayAPI, SimpleNumericArray) {
ASSERT_FALSE(e1[1].ok());
}
-DEATH_TEST(ArrayAPI,
- FindFirstChildNamedOnDeserializedArray,
- "Invariant failure getType() != BSONType::Array") {
+DEATH_TEST_REGEX(ArrayAPI,
+ FindFirstChildNamedOnDeserializedArray,
+ R"#(Invariant failure.*getType\(\) != BSONType::Array)#") {
mmb::Document doc;
auto array = doc.makeElementArray("a");
auto elem0 = doc.makeElementInt("", 0);
@@ -555,9 +555,9 @@ DEATH_TEST(ArrayAPI,
array.findFirstChildNamed("0");
}
-DEATH_TEST(ArrayAPI,
- FindFirstChildNamedOnSerializedArray,
- "Invariant failure getType() != BSONType::Array") {
+DEATH_TEST_REGEX(ArrayAPI,
+ FindFirstChildNamedOnSerializedArray,
+ R"#(Invariant failure.*getType\(\) != BSONType::Array)#") {
auto obj = fromjson("{a: [0, 1]}");
mmb::Document doc(obj);
auto rootElem = doc.root();