summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2017-06-23 14:24:51 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-06-23 14:24:51 -0400
commit517cfce6ce0c242545ef647c4e83cb837fdefecd (patch)
tree95c00b8db672e26604002faadce87735751e2c79 /src/mongo/idl
parenta7f353bd83f20fcc8370a07f12bb557aac75e951 (diff)
downloadmongo-517cfce6ce0c242545ef647c4e83cb837fdefecd.tar.gz
SERVER-29778 Add a string constant for the command name to generated classes
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/idl_test.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/idl/idl_test.cpp b/src/mongo/idl/idl_test.cpp
index f97fddd6577..24af110112d 100644
--- a/src/mongo/idl/idl_test.cpp
+++ b/src/mongo/idl/idl_test.cpp
@@ -1438,12 +1438,11 @@ TEST(IDLEnum, TestStringEnumNegative) {
TEST(IDLCommand, TestConcatentateWithDb) {
IDLParserErrorContext ctxt("root");
- auto testDoc = BSON("BasicConcatenateWithDbCommand"
- << "coll1"
- << "field1"
- << 3
- << "field2"
- << "five");
+ auto testDoc = BSON(BasicConcatenateWithDbCommand::kCommandName << "coll1"
+ << "field1"
+ << 3
+ << "field2"
+ << "five");
auto testStruct = BasicConcatenateWithDbCommand::parse(ctxt, "db", testDoc);
ASSERT_EQUALS(testStruct.getField1(), 3);