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

tests: Replace "localhost" domain name with the equivalent IPv4 address #678

Merged
merged 1 commit into from
Oct 7, 2024

Commits on Oct 7, 2024

  1. tests: Replace "localhost" domain name with the equivalent IPv4 address

    It's common that "localhost" translates with both IPv4 and IPv6. The
    simple containerized test PyPI server we use in our CI doesn't listen
    on IPv6 which may cause unpredictable issues on hosts where IPv6 is
    enabled and IPv6 would get prioritized by the low level network stack
    connection primitives. Therefore, use an IP explicitly to avoid any
    potential issues during pytest run, e.g.:
    
        DEBUG Starting new HTTP connection (1): localhost:8080
        DEBUG ('Connection aborted.',
               ConnectionResetError(104, 'Connection reset by peer'))
    
    Signed-off-by: Erik Skultety <[email protected]>
    eskultety committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    28fbf0f View commit details
    Browse the repository at this point in the history