summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/apply_ops_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-11-01 19:08:53 -0400
committerBenety Goh <benety@mongodb.com>2017-11-06 15:13:37 -0500
commit929570fc836a5940781b6809aa79ab9d6a1a1536 (patch)
treebca28d84c5214932ca1650b23be32670261395bd /src/mongo/db/repl/apply_ops_test.cpp
parentdc04d7d6f22e6542f9f20cf33cd40015cefcf530 (diff)
downloadmongo-929570fc836a5940781b6809aa79ab9d6a1a1536.tar.gz
SERVER-31300 applyOps() adds missing UUID to individual operations in the oplog entry
Diffstat (limited to 'src/mongo/db/repl/apply_ops_test.cpp')
-rw-r--r--src/mongo/db/repl/apply_ops_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/apply_ops_test.cpp b/src/mongo/db/repl/apply_ops_test.cpp
index c7e14bf6cfc..1f1984245b2 100644
--- a/src/mongo/db/repl/apply_ops_test.cpp
+++ b/src/mongo/db/repl/apply_ops_test.cpp
@@ -242,9 +242,9 @@ TEST_F(ApplyOpsTest, AtomicApplyOpsInsertWithoutUuidIntoCollectionWithUuid) {
BSONObjBuilder resultBuilder;
ASSERT_OK(applyOps(opCtx.get(), "test", cmdObj, &resultBuilder));
- // TODO (SERVER-31300): Insert operation provided by caller did not contain collection uuid but
- // applyOps() should add the uuid to the oplog entry.
- auto expectedCmdObj = cmdObj;
+ // Insert operation provided by caller did not contain collection uuid but applyOps() should add
+ // the uuid to the oplog entry.
+ auto expectedCmdObj = makeApplyOpsWithInsertOperation(nss, uuid, documentToInsert);
ASSERT_BSONOBJ_EQ(expectedCmdObj, _opObserver->onApplyOpsCmdObj);
}