{"action":"created","issue":{"url":"https://api.github.com/repos/perwendel/spark/issues/660","repository_url":"https://api.github.com/repos/perwendel/spark","labels_url":"https://api.github.com/repos/perwendel/spark/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/perwendel/spark/issues/660/comments","events_url":"https://api.github.com/repos/perwendel/spark/issues/660/events","html_url":"https://github.com/perwendel/spark/issues/660","id":175569681,"number":660,"title":"Spark in fine grained tests isn't start/stop/re-startable","user":{"login":"ph-hs","id":10211993,"avatar_url":"https://avatars.githubusercontent.com/u/10211993?v=3","gravatar_id":"","url":"https://api.github.com/users/ph-hs","html_url":"https://github.com/ph-hs","followers_url":"https://api.github.com/users/ph-hs/followers","following_url":"https://api.github.com/users/ph-hs/following{/other_user}","gists_url":"https://api.github.com/users/ph-hs/gists{/gist_id}","starred_url":"https://api.github.com/users/ph-hs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ph-hs/subscriptions","organizations_url":"https://api.github.com/users/ph-hs/orgs","repos_url":"https://api.github.com/users/ph-hs/repos","events_url":"https://api.github.com/users/ph-hs/events{/privacy}","received_events_url":"https://api.github.com/users/ph-hs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-07T18:09:08Z","updated_at":"2016-12-06T15:46:12Z","closed_at":null,"body":"This code snippet is a reproduction of the problem:\n\n```\n   public class BugReproduction {\n        @Test\n        public void testIt() throws IOException, UnirestException {\n            serveFooAndAssertBar();\n            spark.Spark.stop();\n            serveFooAndAssertBar();\n        }\n        private void serveFooAndAssertBar() throws UnirestException {\n            spark.Spark.staticFiles.location(\"/static\");\n            spark.Spark.init();\n            spark.Spark.awaitInitialization();\n            assertEquals(Unirest.get(\"http://localhost:4567/foo.txt\")\n                    .asString().getBody().trim(), \"bar\");\n        }\n    }\n```\n\nIn our test suite, we're setting up and tearing down Spark for every test. We're using WebDriver to test dynamic functionality - but that is not shown here as it is not necessary to reproduce the bug. In our suite, with WebDriver and Mountebank, we're getting multiple WebDriver tests a second - and we change Mountebank mocks between tests so we're 100% sure we don't want to setup Spark once only.\n"},"comment":{"url":"https://api.github.com/repos/perwendel/spark/issues/comments/265184478","html_url":"https://github.com/perwendel/spark/issues/660#issuecomment-265184478","issue_url":"https://api.github.com/repos/perwendel/spark/issues/660","id":265184478,"user":{"login":"jakaarl","id":2392827,"avatar_url":"https://avatars.githubusercontent.com/u/2392827?v=3","gravatar_id":"","url":"https://api.github.com/users/jakaarl","html_url":"https://github.com/jakaarl","followers_url":"https://api.github.com/users/jakaarl/followers","following_url":"https://api.github.com/users/jakaarl/following{/other_user}","gists_url":"https://api.github.com/users/jakaarl/gists{/gist_id}","starred_url":"https://api.github.com/users/jakaarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakaarl/subscriptions","organizations_url":"https://api.github.com/users/jakaarl/orgs","repos_url":"https://api.github.com/users/jakaarl/repos","events_url":"https://api.github.com/users/jakaarl/events{/privacy}","received_events_url":"https://api.github.com/users/jakaarl/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T15:46:12Z","updated_at":"2016-12-06T15:46:12Z","body":"Does this have something to with #705 perhaps? "}}
{"actor":{"display_login":"jakaarl"}}