diff options
author | Maria van Keulen <maria@mongodb.com> | 2018-02-08 18:15:57 -0500 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2018-02-21 10:28:45 -0500 |
commit | 6df7ca5841e2ffa40354975323e410796d952382 (patch) | |
tree | ec090fec1d80dc979b4e8439a848d932c4a5b4e9 /src/mongo/db/repl/initial_syncer_test.cpp | |
parent | a3f077342401e97df986c66792eb099978301631 (diff) | |
download | mongo-6df7ca5841e2ffa40354975323e410796d952382.tar.gz |
SERVER-32597 Bump generic fCV references
Diffstat (limited to 'src/mongo/db/repl/initial_syncer_test.cpp')
-rw-r--r-- | src/mongo/db/repl/initial_syncer_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/repl/initial_syncer_test.cpp b/src/mongo/db/repl/initial_syncer_test.cpp index 2d959fb8a5c..91d79e87e72 100644 --- a/src/mongo/db/repl/initial_syncer_test.cpp +++ b/src/mongo/db/repl/initial_syncer_test.cpp @@ -1542,24 +1542,24 @@ TEST_F(InitialSyncerTest, TEST_F(InitialSyncerTest, InitialSyncerReturnsIncompatibleServerVersionWhenFCVFetcherReturnsUpgradeTargetVersion) { auto docs = {BSON("_id" << FeatureCompatibilityVersion::kParameterName << "version" - << FeatureCompatibilityVersionCommandParser::kVersion34 + << FeatureCompatibilityVersionCommandParser::kVersion36 << "targetVersion" - << FeatureCompatibilityVersionCommandParser::kVersion36)}; + << FeatureCompatibilityVersionCommandParser::kVersion40)}; runInitialSyncWithBadFCVResponse(docs, ErrorCodes::IncompatibleServerVersion); } TEST_F(InitialSyncerTest, InitialSyncerReturnsIncompatibleServerVersionWhenFCVFetcherReturnsDowngradeTargetVersion) { auto docs = {BSON("_id" << FeatureCompatibilityVersion::kParameterName << "version" - << FeatureCompatibilityVersionCommandParser::kVersion34 + << FeatureCompatibilityVersionCommandParser::kVersion36 << "targetVersion" - << FeatureCompatibilityVersionCommandParser::kVersion34)}; + << FeatureCompatibilityVersionCommandParser::kVersion36)}; runInitialSyncWithBadFCVResponse(docs, ErrorCodes::IncompatibleServerVersion); } TEST_F(InitialSyncerTest, InitialSyncerReturnsBadValueWhenFCVFetcherReturnsNoVersion) { auto docs = {BSON("_id" << FeatureCompatibilityVersion::kParameterName << "targetVersion" - << FeatureCompatibilityVersionCommandParser::kVersion34)}; + << FeatureCompatibilityVersionCommandParser::kVersion36)}; runInitialSyncWithBadFCVResponse(docs, ErrorCodes::BadValue); } @@ -1582,7 +1582,7 @@ TEST_F(InitialSyncerTest, InitialSyncerSucceedsWhenFCVFetcherReturnsOldVersion) processSuccessfulLastOplogEntryFetcherResponse({makeOplogEntryObj(1)}); auto docs = {BSON("_id" << FeatureCompatibilityVersion::kParameterName << "version" - << FeatureCompatibilityVersionCommandParser::kVersion34)}; + << FeatureCompatibilityVersionCommandParser::kVersion36)}; processSuccessfulFCVFetcherResponse(docs); ASSERT_TRUE(net->hasReadyRequests()); } |