Skip to content

ServiceTypesQuery.test_integration_with_listener is flakey #471

@bdraco

Description

@bdraco

Likely fixed by #419

_______________ ServiceTypesQuery.test_integration_with_listener _______________

self = <zeroconf.test.ServiceTypesQuery testMethod=test_integration_with_listener>

    def test_integration_with_listener(self):
    
        type_ = "_test-srvc-type._tcp.local."
        name = "xxxyyy"
        registration_name = "%s.%s" % (name, type_)
    
        zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1'])
        desc = {'path': '/~paulsm/'}
        info = ServiceInfo(
            type_,
            registration_name,
            80,
            0,
            0,
            desc,
            "ash-2.local.",
            addresses=[socket.inet_aton("10.0.1.2")],
        )
        zeroconf_registrar.register_service(info)
    
        try:
            service_types = ZeroconfServiceTypes.find(interfaces=['127.0.0.1'], timeout=0.5)
>           assert type_ in service_types
E           AssertionError: assert '_test-srvc-type._tcp.local.' in ('_net-assistant._udp.local.', '_rfb._tcp.local.', '_sftp-ssh._tcp.local.', '_ssh._tcp.local.')

zeroconf/test.py:1159: AssertionError

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions