{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/vert.x/issues/1941","repository_url":"https://api.github.com/repos/eclipse/vert.x","labels_url":"https://api.github.com/repos/eclipse/vert.x/issues/1941/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/vert.x/issues/1941/comments","events_url":"https://api.github.com/repos/eclipse/vert.x/issues/1941/events","html_url":"https://github.com/eclipse/vert.x/issues/1941","id":221586825,"number":1941,"title":"Vert.x Junit test does not complete using Rxjava","user":{"login":"RobWin","id":5815046,"avatar_url":"https://avatars3.githubusercontent.com/u/5815046?v=3","gravatar_id":"","url":"https://api.github.com/users/RobWin","html_url":"https://github.com/RobWin","followers_url":"https://api.github.com/users/RobWin/followers","following_url":"https://api.github.com/users/RobWin/following{/other_user}","gists_url":"https://api.github.com/users/RobWin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobWin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobWin/subscriptions","organizations_url":"https://api.github.com/users/RobWin/orgs","repos_url":"https://api.github.com/users/RobWin/repos","events_url":"https://api.github.com/users/RobWin/events{/privacy}","received_events_url":"https://api.github.com/users/RobWin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-13T14:50:12Z","updated_at":"2017-04-15T09:23:41Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to create a WebSocketServer using vertx-rx-java 3.4.1, but I'm facing an issue in my JUnit test.\r\nI created a [unit test](https://github.com/RobWin/messaging-proxy/blob/master/src/test/java/com/qivicon/backend/messaging/MainVerticleTest.java) which sends and receives a message, then closes the client and completes the `Async`, but still the test does not finish.\r\nI tried to solve it, but after some hours work I just can't find the mistake.\r\nI created a GitHub repo where you can reproduce the test.\r\n\r\nhttps://github.com/RobWin/messaging-proxy\r\n\r\nMaybe the log output can help you:\r\n\r\n```\r\n2017-04-13 16:47:49 [main] INFO  c.q.b.messaging.MainVerticleTest - Start Vertx\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-0] INFO  c.q.backend.messaging.MainVerticle - HttpServer is listening on port 8080\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-0] INFO  c.q.backend.messaging.MainVerticle - Handle ServerWebSocket\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] INFO  c.q.b.messaging.MainVerticleTest - WebSocket client connected\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-0] INFO  c.q.backend.messaging.MainVerticle - Message received from client: Hello from client\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] WARN  c.q.b.messaging.MainVerticleTest - Message received from server: Hello world from server\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-0] INFO  c.q.backend.messaging.MainVerticle - WebSocket closed by client\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] INFO  c.q.b.messaging.MainVerticleTest - WebSocket closed\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] INFO  c.q.b.messaging.MainVerticleTest - Async completed\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] INFO  c.q.b.messaging.MainVerticleTest - Async count 1\r\n2017-04-13 16:47:49 [vert.x-eventloop-thread-1] INFO  c.q.b.messaging.MainVerticleTest - Async count 0\r\n```\r\n\r\nAs you can see, the `tearDown` method is not invoked.\r\n\r\nKind regards,\r\n\r\nRobert Winkler\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/vert.x/issues/comments/294282246","html_url":"https://github.com/eclipse/vert.x/issues/1941#issuecomment-294282246","issue_url":"https://api.github.com/repos/eclipse/vert.x/issues/1941","id":294282246,"user":{"login":"RobWin","id":5815046,"avatar_url":"https://avatars3.githubusercontent.com/u/5815046?v=3","gravatar_id":"","url":"https://api.github.com/users/RobWin","html_url":"https://github.com/RobWin","followers_url":"https://api.github.com/users/RobWin/followers","following_url":"https://api.github.com/users/RobWin/following{/other_user}","gists_url":"https://api.github.com/users/RobWin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobWin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobWin/subscriptions","organizations_url":"https://api.github.com/users/RobWin/orgs","repos_url":"https://api.github.com/users/RobWin/repos","events_url":"https://api.github.com/users/RobWin/events{/privacy}","received_events_url":"https://api.github.com/users/RobWin/received_events","type":"User","site_admin":false},"created_at":"2017-04-15T09:23:40Z","updated_at":"2017-04-15T09:23:40Z","body":"Sure "}}
{"actor":{"display_login":"RobWin"}}