Skip to content

test-dns-promises-lookupService assumes getnameinfo can return named service #42164

@kapouer

Description

@kapouer

Version

HEAD

Platform

No response

Subsystem

test

What steps will reproduce the bug?

node test/parallel/test-dns-lookupService-promises.js

How often does it reproduce? Is there a required condition?

On a clean linux chroot without /etc/services (which is provided by nonessential netbase package, not guaranteed to be installed)

What is the expected behavior?

Test should allow dnsPromises.lookupService('127.0.0.1', 22) to return service with 22 or 'ssh'.

What do you see instead?

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
'22' !== 'ssh'
at /tmp/autopkgtest.2FaIUP/build.wly/src/test/parallel/test-dns-lookupService-promises.js:9:10

Additional information

It's the only test assuming getnameinfo will return the service name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions