diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-06-23 14:24:51 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-06-23 14:24:51 -0400 |
commit | 517cfce6ce0c242545ef647c4e83cb837fdefecd (patch) | |
tree | 95c00b8db672e26604002faadce87735751e2c79 /src/mongo/idl | |
parent | a7f353bd83f20fcc8370a07f12bb557aac75e951 (diff) | |
download | mongo-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.cpp | 11 |
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); |