summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batch_write_exec_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/write_ops/batch_write_exec_test.cpp')
-rw-r--r--src/mongo/s/write_ops/batch_write_exec_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/write_ops/batch_write_exec_test.cpp b/src/mongo/s/write_ops/batch_write_exec_test.cpp
index 0977244b890..bc1ffdb1ff0 100644
--- a/src/mongo/s/write_ops/batch_write_exec_test.cpp
+++ b/src/mongo/s/write_ops/batch_write_exec_test.cpp
@@ -330,7 +330,7 @@ public:
});
}
- const NamespaceString nss{"foo.bar"};
+ const NamespaceString nss = NamespaceString::createNamespaceString_forTest("foo.bar");
const CollectionGeneration gen{OID::gen(), Timestamp(1, 1)};
MockNSTargeter singleShardNSTargeter{
@@ -1950,7 +1950,7 @@ public:
}()});
}
- const NamespaceString nss{"foo.bar"};
+ const NamespaceString nss = NamespaceString::createNamespaceString_forTest("foo.bar");
};
TEST_F(BatchWriteExecTargeterErrorTest, TargetedFailedAndErrorResponse) {
@@ -2095,7 +2095,7 @@ public:
BatchWriteExecTest::tearDown();
}
- const NamespaceString nss{"foo.bar"};
+ const NamespaceString nss = NamespaceString::createNamespaceString_forTest("foo.bar");
private:
boost::optional<RouterOperationContextSession> _scopedSession;