@@ -126,7 +126,7 @@ def sync_code():
126126
127127
128128@pytest .mark .asyncio
129- async def test_async_service_registration () -> None :
129+ async def test_async_service_registration (quick_timing : None ) -> None :
130130 """Test registering services broadcasts the registration by default."""
131131 aiozc = AsyncZeroconf (interfaces = ["127.0.0.1" ])
132132 type_ = "_test1-srvc-type._tcp.local."
@@ -193,7 +193,7 @@ def update_service(self, zeroconf: Zeroconf, type: str, name: str) -> None:
193193
194194
195195@pytest .mark .asyncio
196- async def test_async_service_registration_with_server_missing () -> None :
196+ async def test_async_service_registration_with_server_missing (quick_timing : None ) -> None :
197197 """Test registering a service with the server not specified.
198198
199199 For backwards compatibility, the server should be set to the
@@ -394,7 +394,7 @@ def update_service(self, zeroconf: Zeroconf, type: str, name: str) -> None:
394394
395395
396396@pytest .mark .asyncio
397- async def test_async_service_registration_name_conflict () -> None :
397+ async def test_async_service_registration_name_conflict (quick_timing : None ) -> None :
398398 """Test registering services throws on name conflict."""
399399 aiozc = AsyncZeroconf (interfaces = ["127.0.0.1" ])
400400 type_ = "_test-srvc2-type._tcp.local."
@@ -503,7 +503,7 @@ async def test_async_service_registration_name_strict_check(quick_timing: None)
503503
504504
505505@pytest .mark .asyncio
506- async def test_async_tasks () -> None :
506+ async def test_async_tasks (quick_timing : None ) -> None :
507507 """Test awaiting broadcast tasks"""
508508
509509 aiozc = AsyncZeroconf (interfaces = ["127.0.0.1" ])
@@ -605,7 +605,7 @@ async def test_async_wait_unblocks_on_update() -> None:
605605
606606
607607@pytest .mark .asyncio
608- async def test_service_info_async_request () -> None :
608+ async def test_service_info_async_request (quick_timing : None ) -> None :
609609 """Test registering services broadcasts and query with AsyncServceInfo.async_request."""
610610 if not has_working_ipv6 () or os .environ .get ("SKIP_IPV6" ):
611611 pytest .skip ("Requires IPv6" )
@@ -700,7 +700,7 @@ async def test_service_info_async_request() -> None:
700700 # Generating the race condition is almost impossible
701701 # without patching since its a TOCTOU race
702702 with patch ("zeroconf.asyncio.AsyncServiceInfo._is_complete" , False ):
703- await aiosinfo .async_request (aiozc .zeroconf , 3000 )
703+ await aiosinfo .async_request (aiozc .zeroconf , 500 )
704704 assert aiosinfo is not None
705705 assert aiosinfo .addresses == [socket .inet_aton ("10.0.1.3" )]
706706
@@ -714,7 +714,7 @@ async def test_service_info_async_request() -> None:
714714
715715
716716@pytest .mark .asyncio
717- async def test_async_service_browser () -> None :
717+ async def test_async_service_browser (quick_timing : None ) -> None :
718718 """Test AsyncServiceBrowser."""
719719 aiozc = AsyncZeroconf (interfaces = ["127.0.0.1" ])
720720 type_ = "_test9-srvc-type._tcp.local."
@@ -906,10 +906,10 @@ async def test_async_zeroconf_service_types(quick_timing: None) -> None:
906906 await asyncio .sleep (0.2 )
907907 _clear_cache (zeroconf_registrar .zeroconf )
908908 try :
909- service_types = await AsyncZeroconfServiceTypes .async_find (interfaces = ["127.0.0.1" ], timeout = 2 )
909+ service_types = await AsyncZeroconfServiceTypes .async_find (interfaces = ["127.0.0.1" ], timeout = 0.5 )
910910 assert type_ in service_types
911911 _clear_cache (zeroconf_registrar .zeroconf )
912- service_types = await AsyncZeroconfServiceTypes .async_find (aiozc = zeroconf_registrar , timeout = 2 )
912+ service_types = await AsyncZeroconfServiceTypes .async_find (aiozc = zeroconf_registrar , timeout = 0.5 )
913913 assert type_ in service_types
914914
915915 finally :
0 commit comments