diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-04-10 10:04:41 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-05-29 09:51:51 -0400 |
commit | a76082905d63ac8aaaae25e5c76812e6edf9bc07 (patch) | |
tree | 5882b480ff3b7378a30f27106cd8fad6e8271407 /src/mongo/db/pipeline/document_source_change_stream_test.cpp | |
parent | 8150b50f14579b6cbd673f12968726670f6e1b78 (diff) | |
download | mongo-a76082905d63ac8aaaae25e5c76812e6edf9bc07.tar.gz |
SERVER-32088: ChangeStream resumeAfter does not work on sharded collections if not all shards have chunks for the collection
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_change_stream_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream_test.cpp b/src/mongo/db/pipeline/document_source_change_stream_test.cpp index a8412e0d8bf..70a61705fbb 100644 --- a/src/mongo/db/pipeline/document_source_change_stream_test.cpp +++ b/src/mongo/db/pipeline/document_source_change_stream_test.cpp @@ -96,7 +96,10 @@ struct MockMongoInterface final : public StubMongoProcessInterface { class ChangeStreamStageTest : public ChangeStreamStageTestNoSetup { public: - ChangeStreamStageTest() : ChangeStreamStageTest(nss){}; + ChangeStreamStageTest() : ChangeStreamStageTest(nss) { + // Initialize the UUID on the ExpressionContext, to allow tests with a resumeToken. + getExpCtx()->uuid = testUuid(); + }; explicit ChangeStreamStageTest(NamespaceString nsString) : ChangeStreamStageTestNoSetup(nsString) { |