diff options
Diffstat (limited to 'src/mongo/bson/bson_obj_test.cpp')
-rw-r--r-- | src/mongo/bson/bson_obj_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bson_obj_test.cpp b/src/mongo/bson/bson_obj_test.cpp index a061d67f67b..e966af9d559 100644 --- a/src/mongo/bson/bson_obj_test.cpp +++ b/src/mongo/bson/bson_obj_test.cpp @@ -689,7 +689,7 @@ TEST(BSONObj, sizeChecks) { auto generateBuffer = [](std::int32_t size) { std::vector<char> buffer(size); DataRange bufferRange(&buffer.front(), &buffer.back()); - ASSERT_OK(bufferRange.write(LittleEndian<int32_t>(size))); + ASSERT_OK(bufferRange.writeNoThrow(LittleEndian<int32_t>(size))); return buffer; }; |