File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ async def test_gssapi_simple(self):
169169 client = AsyncMongoClient (mech_uri )
170170 await client [GSSAPI_DB ].collection .find_one ()
171171
172- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
172+ set_name = async_client_context . replica_set_name
173173 if set_name :
174174 if not self .service_realm_required :
175175 # Without authMechanismProperties
@@ -242,7 +242,7 @@ async def test_gssapi_threaded(self):
242242 thread .join ()
243243 self .assertTrue (thread .success )
244244
245- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
245+ set_name = async_client_context . replica_set_name
246246 if set_name :
247247 client = AsyncMongoClient (
248248 GSSAPI_HOST ,
@@ -296,7 +296,7 @@ async def test_sasl_plain(self):
296296 client = AsyncMongoClient (uri )
297297 await client .ldap .test .find_one ()
298298
299- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
299+ set_name = async_client_context . replica_set_name
300300 if set_name :
301301 client = AsyncMongoClient (
302302 SASL_HOST ,
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def test_gssapi_simple(self):
169169 client = MongoClient (mech_uri )
170170 client [GSSAPI_DB ].collection .find_one ()
171171
172- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
172+ set_name = client_context . replica_set_name
173173 if set_name :
174174 if not self .service_realm_required :
175175 # Without authMechanismProperties
@@ -242,7 +242,7 @@ def test_gssapi_threaded(self):
242242 thread .join ()
243243 self .assertTrue (thread .success )
244244
245- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
245+ set_name = client_context . replica_set_name
246246 if set_name :
247247 client = MongoClient (
248248 GSSAPI_HOST ,
@@ -296,7 +296,7 @@ def test_sasl_plain(self):
296296 client = MongoClient (uri )
297297 client .ldap .test .find_one ()
298298
299- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
299+ set_name = client_context . replica_set_name
300300 if set_name :
301301 client = MongoClient (
302302 SASL_HOST ,
You can’t perform that action at this time.
0 commit comments