[resteasy-dev] RESTEasy contains hard-coded timeouts in tests
Marek Kopecky
mkopecky at redhat.com
Wed May 11 07:24:10 EDT 2016
RESTEasy contains many hard-coded timeouts in tests:
https://github.com/resteasy/Resteasy/commit/a814c3a1994b3dccb81e548dd01d4e5ac70cd592
WildFly Core contains TimeoutUtil class:
https://github.com/wildfly/wildfly-core/blob/master/testsuite/shared/src/main/java/org/jboss/as/test/shared/TimeoutUtil.java
RESTEasy should contain TimeoutUtil class too.
With this class, timeouts could be defined like this:
private static final int REST_TIMEOUT = TimeoutUtil.adjust(1000);
Default value of REST_TIMEOUT is 1000.
On slower machines, tests could be run with -Dts.timeout.factor=200.
Unit of this property is %. So in this case, value of REST_TIMEOUT is 2000.
Marek
More information about the resteasy-dev
mailing list