summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream_test.cpp
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-04-10 10:04:41 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-05-29 09:51:51 -0400
commita76082905d63ac8aaaae25e5c76812e6edf9bc07 (patch)
tree5882b480ff3b7378a30f27106cd8fad6e8271407 /src/mongo/db/pipeline/document_source_change_stream_test.cpp
parent8150b50f14579b6cbd673f12968726670f6e1b78 (diff)
downloadmongo-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.cpp5
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) {