We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bae30a commit 91aa21dCopy full SHA for 91aa21d
1 file changed
tests/test_handlers.py
@@ -219,7 +219,11 @@ def test_register_and_lookup_type_by_uppercase_name(self):
219
for _ in range(50):
220
time.sleep(0.02)
221
info.load_from_cache(zc)
222
- if info.addresses:
+ # Wait for both A and TXT records — they arrive as separate
223
+ # cache updates and the listener may schedule the assertions
224
+ # between the two. Breaking on just `info.addresses` makes
225
+ # the test flaky under PyPy / skip_cython.
226
+ if info.addresses and info.properties:
227
break
228
assert info.addresses == [socket.inet_pton(socket.AF_INET, "1.2.3.4")]
229
assert info.properties == {b"version": b"1.0"}
0 commit comments