diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_command_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_command_test_fixture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_command_test_fixture.cpp b/src/mongo/s/commands/cluster_command_test_fixture.cpp index f3fe69feda8..60575f966c9 100644 --- a/src/mongo/s/commands/cluster_command_test_fixture.cpp +++ b/src/mongo/s/commands/cluster_command_test_fixture.cpp @@ -106,6 +106,10 @@ void ClusterCommandTestFixture::expectReturnsError(ErrorCodes::Error code) { } DbResponse ClusterCommandTestFixture::runCommand(BSONObj cmd) { + // TODO SERVER-48142 should remove the following fail-point usage. + // Skip appending required fields in unit-tests + FailPointEnableBlock skipAppendingReqFields("allowSkippingAppendRequiredFieldsToResponse"); + // Create a new client/operation context per command auto client = getServiceContext()->makeClient("ClusterCmdClient"); auto opCtx = client->makeOperationContext(); |