이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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.propertiesfile in your application project: Set the value of the
quarkus.http.test-timeoutproperty 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>
quarkus.http.test-timeout=<duration>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example, to set the duration of the response timeout period to 10 seconds:
application.properties
quarkus.http.test-timeout=10s
quarkus.http.test-timeout=10sCopy to Clipboard Copied! Toggle word wrap Toggle overflow