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):
169
169
client = AsyncMongoClient (mech_uri )
170
170
await client [GSSAPI_DB ].collection .find_one ()
171
171
172
- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
172
+ set_name = async_client_context . replica_set_name
173
173
if set_name :
174
174
if not self .service_realm_required :
175
175
# Without authMechanismProperties
@@ -242,7 +242,7 @@ async def test_gssapi_threaded(self):
242
242
thread .join ()
243
243
self .assertTrue (thread .success )
244
244
245
- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
245
+ set_name = async_client_context . replica_set_name
246
246
if set_name :
247
247
client = AsyncMongoClient (
248
248
GSSAPI_HOST ,
@@ -296,7 +296,7 @@ async def test_sasl_plain(self):
296
296
client = AsyncMongoClient (uri )
297
297
await client .ldap .test .find_one ()
298
298
299
- set_name = await client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
299
+ set_name = async_client_context . replica_set_name
300
300
if set_name :
301
301
client = AsyncMongoClient (
302
302
SASL_HOST ,
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def test_gssapi_simple(self):
169
169
client = MongoClient (mech_uri )
170
170
client [GSSAPI_DB ].collection .find_one ()
171
171
172
- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
172
+ set_name = client_context . replica_set_name
173
173
if set_name :
174
174
if not self .service_realm_required :
175
175
# Without authMechanismProperties
@@ -242,7 +242,7 @@ def test_gssapi_threaded(self):
242
242
thread .join ()
243
243
self .assertTrue (thread .success )
244
244
245
- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
245
+ set_name = client_context . replica_set_name
246
246
if set_name :
247
247
client = MongoClient (
248
248
GSSAPI_HOST ,
@@ -296,7 +296,7 @@ def test_sasl_plain(self):
296
296
client = MongoClient (uri )
297
297
client .ldap .test .find_one ()
298
298
299
- set_name = client . admin . command ( HelloCompat . LEGACY_CMD ). get ( "setName" )
299
+ set_name = client_context . replica_set_name
300
300
if set_name :
301
301
client = MongoClient (
302
302
SASL_HOST ,
You can’t perform that action at this time.
0 commit comments