{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/667","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/667/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/667/events","html_url":"https://github.com/wallabyjs/public/issues/667","id":162022679,"number":667,"title":"Delay Teardown","user":{"login":"arg20","id":804281,"avatar_url":"https://avatars.githubusercontent.com/u/804281?v=3","gravatar_id":"","url":"https://api.github.com/users/arg20","html_url":"https://github.com/arg20","followers_url":"https://api.github.com/users/arg20/followers","following_url":"https://api.github.com/users/arg20/following{/other_user}","gists_url":"https://api.github.com/users/arg20/gists{/gist_id}","starred_url":"https://api.github.com/users/arg20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arg20/subscriptions","organizations_url":"https://api.github.com/users/arg20/orgs","repos_url":"https://api.github.com/users/arg20/repos","events_url":"https://api.github.com/users/arg20/events{/privacy}","received_events_url":"https://api.github.com/users/arg20/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-23T21:03:20Z","updated_at":"2016-06-24T01:52:47Z","closed_at":"2016-06-24T01:52:47Z","body":"### Please implement async teardown\r\n\r\nI use wallaby to run database (not mocked) tests. I'm using bookshelf and knex, which need to destroy the pool of connections at the end of the tests or I get an error saying too many connections are being created. Is there any way to delay the teardown so it doesn't stop half way through my cleanup process? I don't want to destroy the process and recreate it."},"comment":{"url":"https://api.github.com/repos/wallabyjs/public/issues/comments/228236397","html_url":"https://github.com/wallabyjs/public/issues/667#issuecomment-228236397","issue_url":"https://api.github.com/repos/wallabyjs/public/issues/667","id":228236397,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T01:52:47Z","updated_at":"2016-06-24T01:52:47Z","body":"Async teardown is not supported, but async [`setup`](https://wallabyjs.com/docs/config/bootstrap.html) is supported. You may access everything that you can access from the `teardown` function, check if what you want to clean up exists, do the cleanup and start tests after the cleanup.\r\n```javascript\r\nsetup: wallaby => {\r\n  wallaby.delayStart();\r\n  yourAsyncCleanUp(() => {\r\n    wallaby.start();\r\n  });\r\n}\r\n```"}}
{"actor":{"display_login":"ArtemGovorov"}}