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

addrmgr: fix intermittent addrmanager_internal_test bug #2131

Commits on Mar 5, 2024

  1. addrmgr: fix intermittent addrmanager_internal_test bug

    Sometimes the tests in the addrmanager_internal_test will fail with:
    "addrmanager_internal_test.go: expected to find 5 addresses, found 4"
    
    This is because the generated address with randAddr() may not always
    generate an address that's routable. If the address is not routable,
    that address will not be added to the manager when calling AddAddress().
    
    This bug is fixed by creating a new function routableRandAddr() that
    always creates a routable random address.
    kcalvinalvin committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    f9da338 View commit details
    Browse the repository at this point in the history