Skip to content

Commit

Permalink
Increase the RestAssured socket timeout in hope to see some Vert.x st…
Browse files Browse the repository at this point in the history
…ack trace for #1636
  • Loading branch information
ppalaga committed Dec 6, 2024
1 parent 3954b56 commit 4df9d45
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.config.HttpClientConfig;
import io.restassured.config.RestAssuredConfig;

@QuarkusTest
public class FastInfosetTest {
Expand Down Expand Up @@ -35,7 +37,13 @@ void gzip() {

@Test
void fastInfoset() {
RestAssuredConfig config = RestAssuredConfig.config()
.httpClient(HttpClientConfig.httpClientConfig()
.setParam("http.connection.timeout", 5000)
.setParam("http.socket.timeout", 120000));

RestAssured.given()
.config(config)
.accept("application/fastinfoset")
.contentType("text/xml")
.body("<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ns2:hello xmlns:ns2=\"https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/test\"><arg0>FastInfoset</arg0></ns2:hello></soap:Body></soap:Envelope>")
Expand All @@ -47,6 +55,7 @@ void fastInfoset() {
.body(CoreMatchers.containsString("Hello FastInfoset"));

RestAssured.given()
.config(config)
.body("FastInfoset")
.post("/fastinfoset/fastinfoset/hello")
.then()
Expand Down

0 comments on commit 4df9d45

Please sign in to comment.