-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Lazy IO opening too many files in integration tests (#1917)
When running on macOS, the integration tests open too many file handles, even when you do not need to run any swarm file tests. ```sh > cabal run -O0 swarm-integration -- -p editors swarm-integration: data/scenarios/Challenges/_bucket-brigade/hauler.sw: openFile: resource exhausted (Too many open files) ``` The solution is to get the file paths only and safely open them as needed. Surprisingly, this even makes the integration test code simpler. * discovered while fixing failing tests in #1895
- Loading branch information
Showing
2 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters