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
-
Open the
application.properties
file in your application project: 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>
For example, to set the duration of the response timeout period to 10 seconds:
application.properties
quarkus.http.test-timeout=10s