diff options
author | jannaerin <golden.janna@gmail.com> | 2023-02-01 20:54:39 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-08 02:46:14 +0000 |
commit | 567bcd0e4822d726aea15f0338c89c49de2a56b5 (patch) | |
tree | fa2a6ea1d3cbd4872fba26df3fdb44548544206f /src/mongo/db/s/start_chunk_clone_request_test.cpp | |
parent | f7afadd90f50662b2b3b3a45595b65b37a59bdc3 (diff) | |
download | mongo-567bcd0e4822d726aea15f0338c89c49de2a56b5.tar.gz |
SERVER-73112 Expose function to construct NamespaceString in unit tests
Diffstat (limited to 'src/mongo/db/s/start_chunk_clone_request_test.cpp')
-rw-r--r-- | src/mongo/db/s/start_chunk_clone_request_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/start_chunk_clone_request_test.cpp b/src/mongo/db/s/start_chunk_clone_request_test.cpp index 0bfe77c5174..ac13dcbf78c 100644 --- a/src/mongo/db/s/start_chunk_clone_request_test.cpp +++ b/src/mongo/db/s/start_chunk_clone_request_test.cpp @@ -59,7 +59,7 @@ TEST(StartChunkCloneRequest, CreateAsCommandComplete) { BSONObjBuilder builder; StartChunkCloneRequest::appendAsCommand( &builder, - NamespaceString("TestDB.TestColl"), + NamespaceString::createNamespaceString_forTest("TestDB.TestColl"), migrationId, lsid, txnNumber, @@ -75,7 +75,8 @@ TEST(StartChunkCloneRequest, CreateAsCommandComplete) { BSONObj cmdObj = builder.obj(); auto request = assertGet(StartChunkCloneRequest::createFromCommand( - NamespaceString(cmdObj["_recvChunkStart"].String()), cmdObj)); + NamespaceString::createNamespaceString_forTest(cmdObj["_recvChunkStart"].String()), + cmdObj)); ASSERT_EQ("TestDB.TestColl", request.getNss().ns()); ASSERT_EQ(sessionId.toString(), request.getSessionId().toString()); |