Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: allow for different nsswitch.conf settings #16378

Closed
wants to merge 2 commits into from

Commits on Oct 22, 2017

  1. test: allow for different nsswitch.conf settings

    The motivation for this commit is that these two test fail on systems
    that have different Name Service Switch configuration settings. A
    concrete example of this is when using Red Hat Enterprise Linux (RHEL)
    7.
    
    If Name Service Switch is available on the operating system then it
    might be configured differently (/etc/nsswitch.conf).
    If the system is configured with no dns the error code will be
    AI_AGAIN, but if there are more services after the dns entry, for
    example some linux distributions skip a myhostname service by default
    which would still produce the ENOTFOUND error.
    
    This commit suggests checking for either ENOTFOUND or EAI_AGAIN to
    accommodate systems like the ones described above. The references below
    indicate that others have run, or are running, into this aswell.
    
    Refs: nodejs#12075
    Refs: nodejs/help#687
    danbev committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    cf68f15 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2017

  1. test: allow for differences in hosts config

    The hosts configuration on a system can affect how dns look up works and
    different error can occur with different setups. This commit adds a
    check for EAI_AGAIN to avoid the issue reported in the issue referred to
    below.
    
    Refs: nodejs#15825
    danbev committed Oct 24, 2017
    Configuration menu
    Copy the full SHA
    4c61f48 View commit details
    Browse the repository at this point in the history