summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_skip_test.cpp
diff options
context:
space:
mode:
authorIan Boros <puppyofkosh@gmail.com>2019-05-08 13:23:47 -0400
committerIan Boros <puppyofkosh@gmail.com>2019-05-09 12:06:00 -0400
commitbf47260ea0cbc58d3744d8964b2eb036b9a1a19e (patch)
tree3814d7b3315e37c54a5f0395a0e3fb0a999f5879 /src/mongo/db/pipeline/document_source_skip_test.cpp
parent7e6a80789cd74f9b533065f57afb5c9221eea1e7 (diff)
downloadmongo-bf47260ea0cbc58d3744d8964b2eb036b9a1a19e.tar.gz
SERVER-41053 Don't create ServiceContexts while doing updates
This commit also renames DocumentSourceMock::create to DocumentSourceMock::createForTest.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_skip_test.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_skip_test.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/document_source_skip_test.cpp b/src/mongo/db/pipeline/document_source_skip_test.cpp
index 74781e96a05..a864ae23b22 100644
--- a/src/mongo/db/pipeline/document_source_skip_test.cpp
+++ b/src/mongo/db/pipeline/document_source_skip_test.cpp
@@ -44,12 +44,13 @@ using DocumentSourceSkipTest = AggregationContextFixture;
TEST_F(DocumentSourceSkipTest, ShouldPropagatePauses) {
auto skip = DocumentSourceSkip::create(getExpCtx(), 2);
- auto mock = DocumentSourceMock::create({Document(),
- DocumentSource::GetNextResult::makePauseExecution(),
- Document(),
- Document(),
- DocumentSource::GetNextResult::makePauseExecution(),
- DocumentSource::GetNextResult::makePauseExecution()});
+ auto mock =
+ DocumentSourceMock::createForTest({Document(),
+ DocumentSource::GetNextResult::makePauseExecution(),
+ Document(),
+ Document(),
+ DocumentSource::GetNextResult::makePauseExecution(),
+ DocumentSource::GetNextResult::makePauseExecution()});
skip->setSource(mock.get());
// Skip the first document.