diff options
author | Benety Goh <benety@mongodb.com> | 2022-09-29 15:39:20 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-29 20:57:07 +0000 |
commit | 65154f6a1356de6ca09e04975a0acdfb1a0351ef (patch) | |
tree | c63017e8180c586d513e193e5e9b7306f383d97a /src/mongo/db | |
parent | e476ee17e9258f540d97a51baf471f5496488e33 (diff) | |
download | mongo-65154f6a1356de6ca09e04975a0acdfb1a0351ef.tar.gz |
SERVER-70093 VectorClockMongoDTest resets global cluster role during setup to be consistent with test description
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/vector_clock_mongod_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/vector_clock_mongod_test.cpp b/src/mongo/db/vector_clock_mongod_test.cpp index 59ccf7b2ca5..43c4e4d8b06 100644 --- a/src/mongo/db/vector_clock_mongod_test.cpp +++ b/src/mongo/db/vector_clock_mongod_test.cpp @@ -37,6 +37,7 @@ #include "mongo/db/op_observer/oplog_writer_mock.h" #include "mongo/db/repl/replication_coordinator_mock.h" #include "mongo/db/s/sharding_mongod_test_fixture.h" +#include "mongo/db/server_options.h" #include "mongo/db/vector_clock_mutable.h" #include "mongo/unittest/death_test.h" #include "mongo/util/clock_source_mock.h" @@ -67,6 +68,9 @@ protected: auto validator = std::make_unique<LogicalTimeValidator>(_keyManager); validator->init(getServiceContext()); LogicalTimeValidator::set(getServiceContext(), std::move(validator)); + + // Ensure that this node is neither "config server" nor "shard server". + serverGlobalParams.clusterRole = ClusterRole::None; } void tearDown() override { |