-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix address util test for loopback of ipv6 #1095
Conversation
7fdd968
to
7c8ffc7
Compare
7c8ffc7
to
febba59
Compare
Codecov Report
@@ Coverage Diff @@
## master #1095 +/- ##
==========================================
- Coverage 92.43% 92.20% -0.23%
==========================================
Files 433 433
Lines 14428 14428
Branches 1048 1048
==========================================
- Hits 13337 13304 -33
- Misses 808 840 +32
- Partials 283 284 +1
Continue to review full report at Codecov.
|
verify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving with minor comments
Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 (#1095) * Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com> * Add CI workflow * Add chai as promised to addressutiltest Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 (#1095) * Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com> * Add CI workflow * Remove junit reporter and add chai as promised plugin to addressutiltest Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
* Fix address util test for loopback of ipv6 * Delete `.be` s Co-authored-by: Metin Dumandag <metindumandag@gmail.com> Co-authored-by: Metin Dumandag <metindumandag@gmail.com>
On some systems
dns.lookup
will return ipv6 ip address. I fix the test by changing assertion to assert ip is either ipv6 loopback address or ipv4 loopback address.Also I realized that the eslint config line-break makes it really hard to work on windows. There are a lot of warning in the open file while writing code. So I deleted it.
I am not sure if the
resolveAddress
method should return only ipv4, I don't think so.Example fail https://github.com/hazelcast/hazelcast-nodejs-client/runs/3958991705?check_suite_focus=true
Seems like with node 17 dns lookup returns ipv6 loopback when localhost is given.