server.close();
HttpServerOptions options = new HttpServerOptions().setHost(DEFAULT_HTTP_HOST).setPort(DEFAULT_HTTP_PORT);
HttpServer server = vertx.createHttpServer(options);
// Now change something - but server should still listen at previous port
options.setPort(DEFAULT_HTTP_PORT + 1);
server.requestHandler(req -> {
req.response().end();
});
server.listen(ar -> {
assertTrue(ar.succeeded());
client.request(HttpMethod.GET, DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, "/uri", res -> {