{"action":"closed","issue":{"url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/557","repository_url":"https://api.github.com/repos/jamesdbloom/mockserver","labels_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/557/comments","events_url":"https://api.github.com/repos/jamesdbloom/mockserver/issues/557/events","html_url":"https://github.com/jamesdbloom/mockserver/issues/557","id":380629521,"node_id":"MDU6SXNzdWUzODA2Mjk1MjE=","number":557,"title":"Java withDelay() not respected in response callback","user":{"login":"berniegp","id":881558,"node_id":"MDQ6VXNlcjg4MTU1OA==","avatar_url":"https://avatars0.githubusercontent.com/u/881558?v=4","gravatar_id":"","url":"https://api.github.com/users/berniegp","html_url":"https://github.com/berniegp","followers_url":"https://api.github.com/users/berniegp/followers","following_url":"https://api.github.com/users/berniegp/following{/other_user}","gists_url":"https://api.github.com/users/berniegp/gists{/gist_id}","starred_url":"https://api.github.com/users/berniegp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berniegp/subscriptions","organizations_url":"https://api.github.com/users/berniegp/orgs","repos_url":"https://api.github.com/users/berniegp/repos","events_url":"https://api.github.com/users/berniegp/events{/privacy}","received_events_url":"https://api.github.com/users/berniegp/received_events","type":"User","site_admin":false},"labels":[{"id":29788025,"node_id":"MDU6TGFiZWwyOTc4ODAyNQ==","url":"https://api.github.com/repos/jamesdbloom/mockserver/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jamesdbloom/mockserver/milestones/8","html_url":"https://github.com/jamesdbloom/mockserver/milestone/8","labels_url":"https://api.github.com/repos/jamesdbloom/mockserver/milestones/8/labels","id":1070244,"node_id":"MDk6TWlsZXN0b25lMTA3MDI0NA==","number":8,"title":"5.5.0-RELEASE","description":"","creator":{"login":"jamesdbloom","id":733179,"node_id":"MDQ6VXNlcjczMzE3OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/733179?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesdbloom","html_url":"https://github.com/jamesdbloom","followers_url":"https://api.github.com/users/jamesdbloom/followers","following_url":"https://api.github.com/users/jamesdbloom/following{/other_user}","gists_url":"https://api.github.com/users/jamesdbloom/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesdbloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesdbloom/subscriptions","organizations_url":"https://api.github.com/users/jamesdbloom/orgs","repos_url":"https://api.github.com/users/jamesdbloom/repos","events_url":"https://api.github.com/users/jamesdbloom/events{/privacy}","received_events_url":"https://api.github.com/users/jamesdbloom/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":24,"state":"open","created_at":"2015-04-16T07:35:22Z","updated_at":"2018-11-15T23:00:43Z","due_on":"2018-12-03T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-11-14T10:22:23Z","updated_at":"2018-11-15T23:00:43Z","closed_at":"2018-11-15T23:00:43Z","author_association":"NONE","body":"When `ExpectationResponseCallback` is used to generate a response, the `withDelay()` method has no effect. I've done minimal stepping and it seems like the problem is that `WebSocketClient` calls `writeAndFlush()` directly when the callback returns.\r\n\r\nExample usage:\r\n\r\n\tClientAndServer server = ClientAndServer.startClientAndServer(80)\r\n\tHttpRequest request = ...\r\n\tserver.when(request).respond(r -> {\r\n\t\treturn response(\"ok\").withDelay(TimeUnit.SECONDS, 5);\r\n\t});\r\n\r\nVersion: 5.4.1"}}
{"actor":{"display_login":"jamesdbloom"}}