forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear AR connections in tests before forking for parallelization
Fixes rails#41176 which seems to affect the mysql2 adapter on MacOS. The underlying mysql problem was diagnosed in this comment by @jgloudon: rails#41176 (comment) It seems like on MacOS the mysql8 client library is using kqueue which creates a file descriptor that is not carried into the child process, allowing for the FD to be re-used. Co-authored-by: Donal McBreen <[email protected]>
- Loading branch information
1 parent
454ecdd
commit 1709940
Showing
4 changed files
with
29 additions
and
0 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
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