{"action":"opened","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/6204","repository_url":"https://api.github.com/repos/playframework/playframework","labels_url":"https://api.github.com/repos/playframework/playframework/issues/6204/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/6204/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/6204/events","html_url":"https://github.com/playframework/playframework/issues/6204","id":157392206,"number":6204,"title":"play-test 2.5.3 Scala route() fails when app is specified","user":{"login":"mslinn","id":485818,"avatar_url":"https://avatars.githubusercontent.com/u/485818?v=3","gravatar_id":"","url":"https://api.github.com/users/mslinn","html_url":"https://github.com/mslinn","followers_url":"https://api.github.com/users/mslinn/followers","following_url":"https://api.github.com/users/mslinn/following{/other_user}","gists_url":"https://api.github.com/users/mslinn/gists{/gist_id}","starred_url":"https://api.github.com/users/mslinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mslinn/subscriptions","organizations_url":"https://api.github.com/users/mslinn/orgs","repos_url":"https://api.github.com/users/mslinn/repos","events_url":"https://api.github.com/users/mslinn/events{/privacy}","received_events_url":"https://api.github.com/users/mslinn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-29T15:48:38Z","updated_at":"2016-05-29T15:48:38Z","closed_at":null,"body":"I used this dependency, which transitively brought in `play-test` 2.5.3:\r\n\r\n    \"org.scalatestplus.play\" %% \"scalatestplus-play\" % \"1.5.1\"\r\n\r\nThe following ([taken from this demo app on github](https://github.com/mslinn/multiproject/blob/master/modules/serviceA/test/controllers/serviceA/ServiceASpec.scala#L33-L40)) gives a deprecation warning; the warning suggests that the version of route be used that accepts an `app`. This code works fine despite the warning:\r\n\r\n      val app = FakeApplication(path = modulePath)\r\n      running(app) {\r\n        route(FakeRequest(GET, \"/a\")).foreach { result =>\r\n          status(result) must equal(OK)\r\n          contentType(result) mustBe Some(\"text/html\")\r\n          contentAsString(result) must include (\"Hello there\")\r\n        }\r\n      }\r\n\r\nWhen the route invocation is altered to incorporate `app`, it looks like this:\r\n\r\n     route(app, FakeRequest(GET, \"/a\"))\r\n\r\n... and fails at runtime with this error:\r\n\r\n    Attempted to call materialize() after the ActorMaterializer has been shut down.\r\n\r\nThe same thing happens if `OneAppPerSuite` is used to define `app`."}}
{"actor":{"display_login":"mslinn"}}