@@ -1108,8 +1108,8 @@ def test_service_browser_expire_callbacks():
11081108 # instantiate a zeroconf instance
11091109 zc = Zeroconf (interfaces = ['127.0.0.1' ])
11101110 # start a browser
1111- type_ = "_http ._tcp.local."
1112- registration_name = "xxxyyy .%s" % type_
1111+ type_ = "_old ._tcp.local."
1112+ registration_name = "uniquezip323 .%s" % type_
11131113 callbacks = []
11141114
11151115 class MyServiceListener (r .ServiceListener ):
@@ -1132,11 +1132,11 @@ def update_service(self, zc, type_, name) -> None:
11321132
11331133 browser = r .ServiceBrowser (zc , type_ , None , listener )
11341134
1135- desc = {'path' : '/~paulsm /' }
1136- address_parsed = "10.0.1.2 "
1135+ desc = {'path' : '/~paul2 /' }
1136+ address_parsed = "10.0.1.3 "
11371137 address = socket .inet_aton (address_parsed )
11381138 info = ServiceInfo (
1139- type_ , registration_name , 80 , 0 , 0 , desc , "ash -2.local." , host_ttl = 1 , other_ttl = 1 , addresses = [address ]
1139+ type_ , registration_name , 80 , 0 , 0 , desc , "newname -2.local." , host_ttl = 1 , other_ttl = 1 , addresses = [address ]
11401140 )
11411141
11421142 def mock_incoming_msg (records ) -> r .DNSIncoming :
@@ -1149,7 +1149,7 @@ def mock_incoming_msg(records) -> r.DNSIncoming:
11491149 zc ,
11501150 mock_incoming_msg ([info .dns_pointer (), info .dns_service (), info .dns_text (), * info .dns_addresses ()]),
11511151 )
1152- time .sleep (0.2 )
1152+ time .sleep (0.3 )
11531153 info .port = 400
11541154 _inject_response (
11551155 zc ,
@@ -1160,7 +1160,7 @@ def mock_incoming_msg(records) -> r.DNSIncoming:
11601160 ('add' , type_ , registration_name ),
11611161 ('update' , type_ , registration_name ),
11621162 ]
1163- time .sleep (1.2 )
1163+ time .sleep (1.1 )
11641164 assert callbacks == [
11651165 ('add' , type_ , registration_name ),
11661166 ('update' , type_ , registration_name ),
0 commit comments