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

Tests are slow on Windows 10 #62

Closed
deklanw opened this issue Aug 1, 2018 · 0 comments
Closed

Tests are slow on Windows 10 #62

deklanw opened this issue Aug 1, 2018 · 0 comments

Comments

@deklanw
Copy link
Contributor

deklanw commented Aug 1, 2018

The tests are significantly slower on Windows (10 at least).

I was hesitant on making pull requests for this project until I got this resolved. Turns out to be something related to IPv6. More info here:
Automattic/mongoose#6566 (comment)

mongoose.connect(config.database.uri);

Just changing the line to
mongoose.connect(config.database.uri, { family: 4 });
works. I don't think it has any unintended consequences, either. Unless the server needs to use IPv6 for some reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant