@@ -849,7 +849,8 @@ async def test_init_disconnected_with_auth(self):
849849 with self .assertRaises (ConnectionFailure ):
850850 await c .pymongo_test .test .find_one ()
851851
852- @async_client_context .require_replica_set
852+ @async_client_context .require_no_standalone
853+ @async_client_context .require_no_load_balancer
853854 @async_client_context .require_tls
854855 async def test_init_disconnected_with_srv (self ):
855856 c = await self .async_rs_or_single_client (
@@ -875,20 +876,23 @@ async def test_init_disconnected_with_srv(self):
875876 self .assertEqual (
876877 c ._topology ._topology_id , topology_description ._topology_settings ._topology_id
877878 )
879+ await c .close ()
878880
879881 c = await self .async_rs_or_single_client (
880882 "mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
881883 )
882884 # primary causes client to block until connected
883885 await c .primary
884886 self .assertIsNotNone (c ._topology )
887+ await c .close ()
885888
886889 c = await self .async_rs_or_single_client (
887890 "mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
888891 )
889892 # secondaries causes client to block until connected
890893 await c .secondaries
891894 self .assertIsNotNone (c ._topology )
895+ await c .close ()
892896
893897 c = await self .async_rs_or_single_client (
894898 "mongodb+srv://test1.test.build.10gen.cc" , connect = False , tlsInsecure = True
0 commit comments