Skip to content

test-net-autoselectfamily.js failed #48767

Description

@ywave620

Version

v20.4.0

Platform

Darwin MacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64

Subsystem

net

What steps will reproduce the bug?

Download the latest node from the offical site. https://nodejs.org/dist/v20.4.0/node-v20.4.0-darwin-x64.tar.gz

roger@MacBook-Pro node-contribute % ~/Downloads/node-v20.4.0-darwin-x64/bin/node ~/Work/node-contribute/test/parallel/test-net-autoselectfamily.js

The test-net-autoselectfamily.js I run is from the latest node source.

roger@MacBook-Pro node-contribute % git log
commit f9737b1b8c96e43cedfff764634524df62cf3109 (HEAD -> origin/main, origin/HEAD)
Author: Node.js GitHub Bot <github-bot@iojs.org>
Date:   Fri Jul 14 10:37:47 2023 +0100

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

Consistently reproducable

What is the expected behavior? Why is that the expected behavior?

no complaint, of course

What do you see instead?

node:assert:125
throw new AssertionError(obj);
^

AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:

  • actual - expected

    [
    '2606:4700::6810:85e5:56228',
    '104.20.22.46:56228',

  • '2606:4700::6810:84e5:56228',
  • '104.20.23.46:56228',
  • '::1:56228',
  • '127.0.0.1:56228'
    ]
    at Socket. (/Users/roger/Work/node-contribute/test/parallel/test-net-autoselectfamily.js:145:18)
    at Socket. (/Users/roger/Work/node-contribute/test/common/index.js:466:15)
    at Socket.emit (node:events:512:28)
    at afterConnect (node:net:1578:10)
    at afterConnectMultiple (node:net:1675:3) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: [ '2606:4700::6810:85e5:56228', '104.20.22.46:56228' ],
    expected: [
    '2606:4700::6810:85e5:56228',
    '104.20.22.46:56228',
    '2606:4700::6810:84e5:56228',
    '104.20.23.46:56228',
    '::1:56228',
    '127.0.0.1:56228'
    ],
    operator: 'deepStrictEqual'
    }

Node.js v20.4.0

Additional information

No response

Activity

  1. added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Jul 18, 2023
  2. targos commented on Sep 13, 2023

    @targos
    Member

    I can reproduce this failure with the V8 canary branch (and v20.6.1), also on macOS.

  3. ywave620 commented on Dec 14, 2023

    @ywave620
    ContributorAuthor

    Any update? It just keeps failing. Even in linux

  4. nadalaba commented on Apr 30, 2026

    @nadalaba
    Contributor

    This fails on windows too with v27.0.0-pre and passes when decreasing timeout:
    const autoSelectFamilyAttemptTimeout = 50;

  5. brynary commented on Aug 28, 2026

    @brynary

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions