summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/documentsourcetests.cpp
diff options
context:
space:
mode:
authorSulabh Mahajan <sulabh.mahajan@mongodb.com>2018-06-08 14:34:55 +1000
committerSulabh Mahajan <sulabh.mahajan@mongodb.com>2018-06-08 14:34:55 +1000
commite361973f0e994d7c5da603cb6436fd96f7180127 (patch)
tree97efe6bdfd0d0bf26e1c33365d7d4682ee03ad36 /src/mongo/dbtests/documentsourcetests.cpp
parente317b88bb811da53f73ddb992417ae05ea8fe451 (diff)
downloadmongo-e361973f0e994d7c5da603cb6436fd96f7180127.tar.gz
SERVER-33605 Mobile SE:Disable capped collections and related testing
Diffstat (limited to 'src/mongo/dbtests/documentsourcetests.cpp')
-rw-r--r--src/mongo/dbtests/documentsourcetests.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/dbtests/documentsourcetests.cpp b/src/mongo/dbtests/documentsourcetests.cpp
index 5a834ed8aa5..33530e2c2a5 100644
--- a/src/mongo/dbtests/documentsourcetests.cpp
+++ b/src/mongo/dbtests/documentsourcetests.cpp
@@ -351,6 +351,11 @@ TEST_F(DocumentSourceCursorTest, ExpressionContextAndSerializeVerbosityMismatch)
}
TEST_F(DocumentSourceCursorTest, TailableAwaitDataCursorShouldErrorAfterTimeout) {
+ // Skip the test if the storage engine doesn't support capped collections.
+ if (!getGlobalServiceContext()->getStorageEngine()->supportsCappedCollections()) {
+ return;
+ }
+
// Make sure the collection exists, otherwise we'll default to a NO_YIELD yield policy.
const bool capped = true;
const long long cappedSize = 1024;
@@ -431,6 +436,11 @@ TEST_F(DocumentSourceCursorTest, NonAwaitDataCursorShouldErrorAfterTimeout) {
}
TEST_F(DocumentSourceCursorTest, TailableAwaitDataCursorShouldErrorAfterBeingKilled) {
+ // Skip the test if the storage engine doesn't support capped collections.
+ if (!getGlobalServiceContext()->getStorageEngine()->supportsCappedCollections()) {
+ return;
+ }
+
// Make sure the collection exists, otherwise we'll default to a NO_YIELD yield policy.
const bool capped = true;
const long long cappedSize = 1024;