-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat: add support for Node 17 #7710
feat: add support for Node 17 #7710
Conversation
Thanks for opening this pull request!
|
c4d30cb
to
217c526
Compare
Codecov Report
@@ Coverage Diff @@
## alpha #7710 +/- ##
==========================================
- Coverage 93.98% 93.95% -0.03%
==========================================
Files 183 183
Lines 13655 13655
==========================================
- Hits 12833 12830 -3
- Misses 822 825 +3
Continue to review full report at Codecov.
|
Should be good @mtrezza |
@marvinroger kindly let me know when this is ready for review |
@mtrezza This is ready for review, and all relevant tests pass. |
@davimacedo do you see any issue replacing If we make a change like this: -options.serverURL = `http://localhost:${options.port}${options.mountPath}`;
+options.serverURL = `http://127.0.0.1:${options.port}${options.mountPath}`;
|
@mtrezza sorry for the delay. I'm ok in replacing |
We may create an issue here if we require developers to not use I understand from the previous comments that If we set |
No, if you set |
I may have misread your previous comment, apologies. If setting In 217c526 this option is only added to the test helper, but I think with the change in |
Closing in favor of #7896 Thanks for the investigation @marvinroger, after some more investigation I'll continue in #7896 with only setting the setDefaultResultOrder. That seems to be the most sustainable change. |
New Pull Request Checklist
Issue Description
Related issue: #7708
Approach
Every test was failing, because (
dns.lookup
on Node.17 does not prioritize IPv4 addresses anymore), so reaching for example MongoDB onlocalhost
resulted in aconnect ECONNREFUSED ::1
error, because Mongo is not listening on the IPv6 interface.I fixed it by manually overriding the resolution order in
helper.js
in tests.TODOs before merging