{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/836","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/836/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/836/events","html_url":"https://github.com/tgriesser/knex/issues/836","id":78201651,"number":836,"title":"Testing fails after 3 retries (related to pooling)","user":{"login":"brian-mann","id":1268976,"avatar_url":"https://avatars.githubusercontent.com/u/1268976?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-mann","html_url":"https://github.com/brian-mann","followers_url":"https://api.github.com/users/brian-mann/followers","following_url":"https://api.github.com/users/brian-mann/following{/other_user}","gists_url":"https://api.github.com/users/brian-mann/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-mann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-mann/subscriptions","organizations_url":"https://api.github.com/users/brian-mann/orgs","repos_url":"https://api.github.com/users/brian-mann/repos","events_url":"https://api.github.com/users/brian-mann/events{/privacy}","received_events_url":"https://api.github.com/users/brian-mann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-19T18:31:53Z","updated_at":"2015-05-25T13:57:46Z","closed_at":"2015-05-19T19:15:23Z","body":"When I am testing my app it will consistently crash with this error:\r\n\r\n```\r\nKnex:Error Pool2 - error: Error allocating resources: sorry, too many clients already\r\nKnex:Error Pool2 - error: Error allocating resources: sorry, too many clients already\r\nCould not connect to your local postgres db!\r\nPool was destroyed\r\n```\r\n\r\nI don't have a pool object in my `knexfile`, I just use all the defaults. I'm using `0.8.5`. I use the `pg.app` with all defaults.\r\n\r\nIt doesn't matter how benign the test is. Even if the test is passing. If I rerun it after 3 times, the 4th time will always crash."},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/105238468","html_url":"https://github.com/tgriesser/knex/issues/836#issuecomment-105238468","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/836","id":105238468,"user":{"login":"myndzi","id":1588419,"avatar_url":"https://avatars.githubusercontent.com/u/1588419?v=3","gravatar_id":"","url":"https://api.github.com/users/myndzi","html_url":"https://github.com/myndzi","followers_url":"https://api.github.com/users/myndzi/followers","following_url":"https://api.github.com/users/myndzi/following{/other_user}","gists_url":"https://api.github.com/users/myndzi/gists{/gist_id}","starred_url":"https://api.github.com/users/myndzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myndzi/subscriptions","organizations_url":"https://api.github.com/users/myndzi/orgs","repos_url":"https://api.github.com/users/myndzi/repos","events_url":"https://api.github.com/users/myndzi/events{/privacy}","received_events_url":"https://api.github.com/users/myndzi/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T13:57:46Z","updated_at":"2015-05-25T13:57:46Z","body":"Ah, yes, that would indeed happen: everything in the v8 environment is of course purged on exit. The thing is, mocha doesn't spawn processes, so that wasn't happening."}}