From 6e72252dbbaf0202b1a8acb591c983478fdc46ab Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Thu, 29 Sep 2022 11:10:13 -0400 Subject: SERVER-70093 InternalSessionPoolTest resets global cluster role when tearing down --- src/mongo/db/session/internal_session_pool_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mongo/db/session/internal_session_pool_test.cpp b/src/mongo/db/session/internal_session_pool_test.cpp index 6a1603922d2..b0ae0c5c1df 100644 --- a/src/mongo/db/session/internal_session_pool_test.cpp +++ b/src/mongo/db/session/internal_session_pool_test.cpp @@ -52,6 +52,10 @@ public: _opCtx = makeOperationContext(); } + void tearDown() override { + serverGlobalParams.clusterRole = ClusterRole::None; + } + OperationContext* opCtx() const { return _opCtx.get(); } -- cgit v1.2.1