Chapter 3. Setting the response timeout period for HTTP test connections


When you use REST Assured to test the REST APIs in your application, the default connection and response timeout period is set to 30 seconds. You can change the length of the timeout period for your application.

Procedure

  1. Open the application.properties file in your application project:
  2. Set the value of the quarkus.http.test-timeout property to the length of the duration that you want to set for the timeout period followed by the unit of time that you want to set the duration in:

    application.properties

    quarkus.http.test-timeout=<duration>
    Copy to Clipboard Toggle word wrap

    For example, to set the duration of the response timeout period to 10 seconds:

    application.properties

    quarkus.http.test-timeout=10s
    Copy to Clipboard Toggle word wrap

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat