diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-10-04 17:13:24 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-10-09 17:46:10 -0400 |
commit | 4f17acbd9ca2ba9b91a4c72813fcb413146cfdcf (patch) | |
tree | a3429a032a49624b8a6b0be854455de45d9e19f4 /src/mongo/db/pipeline/document_source_sort_test.cpp | |
parent | 893d4efbdfc7d536d7b6c44a9cb31dcdb7f8fd20 (diff) | |
download | mongo-4f17acbd9ca2ba9b91a4c72813fcb413146cfdcf.tar.gz |
SERVER-29141 Enable change streams on sharded collections
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sort_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_sort_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_sort_test.cpp b/src/mongo/db/pipeline/document_source_sort_test.cpp index 2bc39427a37..fca4caaaf28 100644 --- a/src/mongo/db/pipeline/document_source_sort_test.cpp +++ b/src/mongo/db/pipeline/document_source_sort_test.cpp @@ -131,7 +131,7 @@ TEST_F(DocumentSourceSortTest, SortWithLimit) { ASSERT_BSONOBJ_EQ(arr[0].getDocument().toBson(), BSON("$sort" << BSON("a" << 1))); ASSERT(sort()->getShardSource() != nullptr); - ASSERT(sort()->getMergeSource() != nullptr); + ASSERT(!sort()->getMergeSources().empty()); } container.push_back(DocumentSourceLimit::create(expCtx, 10)); @@ -158,7 +158,7 @@ TEST_F(DocumentSourceSortTest, SortWithLimit) { DOC_ARRAY(DOC("$sort" << DOC("a" << 1)) << DOC("$limit" << sort()->getLimit()))); ASSERT(sort()->getShardSource() != nullptr); - ASSERT(sort()->getMergeSource() != nullptr); + ASSERT(!sort()->getMergeSources().empty()); } TEST_F(DocumentSourceSortTest, Dependencies) { |