@@ -849,7 +849,8 @@ async def test_init_disconnected_with_auth(self):
849
849
with self .assertRaises (ConnectionFailure ):
850
850
await c .pymongo_test .test .find_one ()
851
851
852
- @async_client_context .require_replica_set
852
+ @async_client_context .require_no_standalone
853
+ @async_client_context .require_no_load_balancer
853
854
@async_client_context .require_tls
854
855
async def test_init_disconnected_with_srv (self ):
855
856
c = await self .async_rs_or_single_client (
@@ -875,20 +876,23 @@ async def test_init_disconnected_with_srv(self):
875
876
self .assertEqual (
876
877
c ._topology ._topology_id , topology_description ._topology_settings ._topology_id
877
878
)
879
+ await c .close ()
878
880
879
881
c = await self .async_rs_or_single_client (
880
882
"mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
881
883
)
882
884
# primary causes client to block until connected
883
885
await c .primary
884
886
self .assertIsNotNone (c ._topology )
887
+ await c .close ()
885
888
886
889
c = await self .async_rs_or_single_client (
887
890
"mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
888
891
)
889
892
# secondaries causes client to block until connected
890
893
await c .secondaries
891
894
self .assertIsNotNone (c ._topology )
895
+ await c .close ()
892
896
893
897
c = await self .async_rs_or_single_client (
894
898
"mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
0 commit comments