RESTEasy contains many hard-coded timeouts in tests:
https://github.com/resteasy/Resteasy/commit/a814c3a1994b3dccb81e548dd01d4...
WildFly Core contains TimeoutUtil class:
https://github.com/wildfly/wildfly-core/blob/master/testsuite/shared/src/...
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