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

'Too many connections' Error thrown during testing with DatabaseTransactions trait. #20341

Closed
twig1337 opened this issue Jul 31, 2017 · 1 comment

Comments

@twig1337
Copy link
Contributor

  • Laravel Version: 5.4.23
  • PHP Version: 7.0.19
  • Database Driver & Version: MySql 5.6.36

Description:

Error "PDOException: SQLSTATE[08004] [1040] Too many connections" is being thrown while running a PHPUnit test suite that uses the DatabaseTransactions trait with the $connectionsToTransact variable defined.

Steps To Reproduce:

Create a PHPUnit test suite with the DatabaseTransactions trait that references multiple database connections within the $connectionsToTransact variable. Determine what your maximum connections variable is set to for your MySql instance then run enough tests to make sure you would exceed said number.

Pull Request

#20340

@themsaid
Copy link
Member

themsaid commented Aug 1, 2017

Moving the discussion to the PR.

@themsaid themsaid closed this as completed Aug 1, 2017
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

2 participants