From ab0af4dc877ea795069b720b5900e313f7e36f02 Mon Sep 17 00:00:00 2001 From: Gregory Noma Date: Thu, 24 Feb 2022 19:33:56 +0000 Subject: SERVER-60562 Include cursor value in duplicate key error when testing is enabled --- src/mongo/db/s/dist_lock_catalog_replset_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/s') diff --git a/src/mongo/db/s/dist_lock_catalog_replset_test.cpp b/src/mongo/db/s/dist_lock_catalog_replset_test.cpp index aedba30df96..a05f6db250d 100644 --- a/src/mongo/db/s/dist_lock_catalog_replset_test.cpp +++ b/src/mongo/db/s/dist_lock_catalog_replset_test.cpp @@ -503,8 +503,9 @@ TEST_F(DistLockCatalogReplSetTest, GrabLockDupKeyError) { }); onCommand([](const RemoteCommandRequest& request) -> StatusWith { - return Status({DuplicateKeyErrorInfo(BSON("x" << 1), BSON("" << 1), BSONObj{}), - "Mock duplicate key error"}); + return Status( + {DuplicateKeyErrorInfo(BSON("x" << 1), BSON("" << 1), BSONObj{}, stdx::monostate{}), + "Mock duplicate key error"}); }); future.default_timed_get(); -- cgit v1.2.1