Please use org.jboss.as.test.shared.TimeoutUtil for timeouts like this and the one at L76-82. Also wouldn't a longer wait in both places be better? AIUI, the test isn't trying to check for prompt connections, and in the normal case it should all happen very quickly, so a longer timeout hurts nothing in the normal case. In the unusual case of a long GC pause or a temporarily overloaded test server, the longer timeout helps avoid spurious failures.