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

Fix random test failures on Mac #4

Merged
merged 1 commit into from
Jul 10, 2022
Merged

Fix random test failures on Mac #4

merged 1 commit into from
Jul 10, 2022

Conversation

vweevers
Copy link
Member

Using tempy to generate random temporary directories results in unix domain socket names that are too long (104 bytes is the max on Mac) which manifests itself as EADDRINUSE errors (discovered in #3). So replace tempy with a simple alternative.

Also expands the CI test matrix, adding Node.js 18 and Windows and Mac, to test platform differences in the handling of sockets.

@vweevers vweevers added the test Improvements or additions to tests label Jul 10, 2022
test/util/tempy.js Outdated Show resolved Hide resolved
test/util/tempy.js Show resolved Hide resolved
Using `tempy` to generate random temporary directories results in
unix domain socket names that are too long (104 bytes is the max
on Mac) which manifests itself as EADDRINUSE errors. So replace
`tempy` with a simple alternative.

Also expands the CI test matrix, adding Node.js 18 and Windows and
Mac, to test platform differences in the handling of sockets.
@vweevers
Copy link
Member Author

@juliangruber OK, ditched tempy.

@vweevers vweevers changed the title Fix random CI failures on Mac Fix random test failures on Mac Jul 10, 2022
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@vweevers vweevers merged commit 37579af into main Jul 10, 2022
@vweevers vweevers deleted the fix-mac-ci branch July 10, 2022 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Improvements or additions to tests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants