Skip to content

Commit 14542bd

Browse files
authored
Fix flakey test_update_record test (round 2) (#528)
1 parent 16d40b5 commit 14542bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zeroconf/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,8 @@ def mock_incoming_msg(
21562156
zeroconf,
21572157
mock_incoming_msg(r.ServiceStateChange.Added, service_types[1], service_names[1], 120),
21582158
)
2159+
zeroconf.wait(100)
2160+
21592161
called_with_refresh_time_check = False
21602162

21612163
def _mock_get_expiration_time(self, percent):
@@ -2171,7 +2173,6 @@ def _mock_get_expiration_time(self, percent):
21712173
zeroconf,
21722174
mock_incoming_msg(r.ServiceStateChange.Added, service_types[0], service_names[0], 120),
21732175
)
2174-
zeroconf.wait(100)
21752176
# Add the last record after updating the first one
21762177
# to ensure the service_add_event only gets set
21772178
# after the update

0 commit comments

Comments
 (0)