FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix flakey test_update_record test (round 2) by bdraco · Pull Request #528 · python-zeroconf/python-zeroconf · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 2 additions & 1 deletion zeroconf/test.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,8 @@ def mock_incoming_msg(
zeroconf,
mock_incoming_msg(r.ServiceStateChange.Added, service_types[1], service_names[1], 120),
)
zeroconf.wait(100)

called_with_refresh_time_check = False

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

Back | FazBrowse Home | New Git URL