test-net-autoselectfamily.js failed
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 122k
- Fork
- 37.4k
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 272
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách chạy test/parallel/test-net-autoselectfamily.js với binary Node.js v20.4.0 được báo cáo trên nền tảng Darwin được liệt kê, sau đó kiểm tra assertion ở dòng 145 và phần thiết lập kết nối liên quan. So sánh chuỗi địa chỉ quan sát được với các giá trị mà test mong đợi và xác lập một bản sửa hoặc điều chỉnh test có thể vượt qua một cách nhất quán mà không xảy ra lỗi assertion đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- networking, testing-qa
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100