diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_skip_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_skip_test.cpp | 13 |
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. |