-
Notifications
You must be signed in to change notification settings - Fork 60
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
Test suite fails on macOS #133
Comments
I wonder what the limit is on macos? |
$ launchctl limit maxfiles
maxfiles 256 unlimited So seems the soft fd limit is quite low by default (256 on my system) which sounds plausible that you hit in the test suite. |
And yet...what changed? And why does this feel so familiar? |
I'm not sure what you are referring to. For what it's worth |
The limit is 1024 on ubuntu, if I set |
|
I think the problem is that in this function, https://github.com/acid-state/acid-state/blob/master/test/Data/Acid/StateMachineTest.hs#L486 it calls 'open' to open an acid-state test DB, but never calls close. So there is a file handle leak and that exceeds the limits on OS X. However, the way the 'parallel' function works in Hedgehog -- you can provide a prefix list of commands, but not a postfix list of commands. So it is not obvious how to close the handles. Since this is just a test suite, the file handle leaks are perhaps ok, aside from the failure on OS X. Perhaps there is a way to limit the number of tests run to avoid hitting the limit on OS X? |
Increasing the limit on macos might be the easy thing. |
The text was updated successfully, but these errors were encountered: