diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-01-06 14:40:35 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-01-06 15:53:27 -0500 |
commit | f2c66a95752628a1c51fd7b35148ff76e0718722 (patch) | |
tree | e04a6cc439f6d19cbc375ad60ebea49cd2b8e414 /src/mongo/bson | |
parent | 8bfce9bcce36c2250f17fb51cadbdabb74754e10 (diff) | |
download | mongo-f2c66a95752628a1c51fd7b35148ff76e0718722.tar.gz |
SERVER-11903 Fix bug in bson_validate_test support code
Not using the passed-in fieldname invalidated the ErrorIsInId test case.
Luckily it still passes with this fixed.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bson_validate_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bson_validate_test.cpp b/src/mongo/bson/bson_validate_test.cpp index 2d381e31183..add7432d3da 100644 --- a/src/mongo/bson/bson_validate_test.cpp +++ b/src/mongo/bson/bson_validate_test.cpp @@ -25,7 +25,7 @@ namespace { void appendInvalidStringElement(const char* fieldName, BufBuilder* bb) { // like a BSONObj string, but without a NUL terminator. bb->appendChar(String); - bb->appendStr("name", /*withNUL*/true); + bb->appendStr(fieldName, /*withNUL*/true); bb->appendNum(4); bb->appendStr("asdf", /*withNUL*/false); } |