summaryrefslogtreecommitdiff
path: root/src/mongo/db/snapshot_window_util_test.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2019-07-01 14:49:26 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2019-07-01 21:28:57 -0400
commit164e785735f0fd8db2e0c68b86c2278ddc92a671 (patch)
tree3055b20b0e90aecc3003cb276cbf0350d8ab5ef8 /src/mongo/db/snapshot_window_util_test.cpp
parentb9198150102c2edd2c2d27f0db2a96eaef9b6e38 (diff)
downloadmongo-164e785735f0fd8db2e0c68b86c2278ddc92a671.tar.gz
SERVER-41560 default the snapshot window size to 0 when running with the WT inMemory storage engine
Diffstat (limited to 'src/mongo/db/snapshot_window_util_test.cpp')
-rw-r--r--src/mongo/db/snapshot_window_util_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/snapshot_window_util_test.cpp b/src/mongo/db/snapshot_window_util_test.cpp
index 19e1b60c4a1..3d7a23d8815 100644
--- a/src/mongo/db/snapshot_window_util_test.cpp
+++ b/src/mongo/db/snapshot_window_util_test.cpp
@@ -32,6 +32,7 @@
#include "mongo/db/snapshot_window_util.h"
#include "mongo/db/client.h"
+#include "mongo/db/commands/test_commands_enabled.h"
#include "mongo/db/service_context.h"
#include "mongo/db/service_context_devnull_test_fixture.h"
#include "mongo/db/snapshot_window_options.h"
@@ -51,6 +52,7 @@ public:
void setUp() override {
ServiceContextDevnullTestFixture::setUp();
_opCtx = cc().makeOperationContext();
+ setTestCommandsEnabled(true);
}
void tearDown() override {