diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2013-12-11 11:00:32 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2013-12-13 15:51:49 -0500 |
commit | 34738d8f39dae85b10687b207473e61b52b5b93c (patch) | |
tree | ef13e89af32eb2696824b19b7b7ca8d23ad9eb76 /src/mongo/db/ops/modifier_pull_test.cpp | |
parent | 2c54682ce88e2c4e7fe8c99baeadfece0831dbd2 (diff) | |
download | mongo-34738d8f39dae85b10687b207473e61b52b5b93c.tar.gz |
SERVER-12029: use $unset true in logbuilder, and unset mod
Diffstat (limited to 'src/mongo/db/ops/modifier_pull_test.cpp')
-rw-r--r-- | src/mongo/db/ops/modifier_pull_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/ops/modifier_pull_test.cpp b/src/mongo/db/ops/modifier_pull_test.cpp index ccb6a5429f7..af457dd8cbc 100644 --- a/src/mongo/db/ops/modifier_pull_test.cpp +++ b/src/mongo/db/ops/modifier_pull_test.cpp @@ -97,7 +97,7 @@ namespace { Document logDoc; LogBuilder logBuilder(logDoc.root()); ASSERT_OK(mod.log(&logBuilder)); - ASSERT_EQUALS(fromjson("{ $unset : { a : 1 } }"), logDoc); + ASSERT_EQUALS(fromjson("{ $unset : { a : true } }"), logDoc); } TEST(SimpleMod, PrepareOKTargetFound) { @@ -138,7 +138,7 @@ namespace { Document logDoc; LogBuilder logBuilder(logDoc.root()); ASSERT_OK(mod.log(&logBuilder)); - ASSERT_EQUALS(fromjson("{ $unset : { a : 1 } }"), logDoc); + ASSERT_EQUALS(fromjson("{ $unset : { a : true } }"), logDoc); } TEST(SimpleMod, PrepareAndLogMissingElementAfterFoundPath) { @@ -153,7 +153,7 @@ namespace { Document logDoc; LogBuilder logBuilder(logDoc.root()); ASSERT_OK(mod.log(&logBuilder)); - ASSERT_EQUALS(fromjson("{ $unset : { 'a.b.c.d' : 1 } }"), logDoc); + ASSERT_EQUALS(fromjson("{ $unset : { 'a.b.c.d' : true } }"), logDoc); } TEST(SimpleMod, PrepareAndLogEmptyArray) { |