summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-01-06 14:40:35 -0500
committerMathias Stearn <mathias@10gen.com>2014-01-06 15:53:27 -0500
commitf2c66a95752628a1c51fd7b35148ff76e0718722 (patch)
treee04a6cc439f6d19cbc375ad60ebea49cd2b8e414 /src/mongo/bson
parent8bfce9bcce36c2250f17fb51cadbdabb74754e10 (diff)
downloadmongo-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.cpp2
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);
}