Mercurial > hg > thermostat-ng > web-gateway
changeset 156:481aa587cdd0
Increase timeout when waiting for Server in Integration tests
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-May/023229.html
author | Jie Kang <jkang@redhat.com> |
---|---|
date | Tue, 23 May 2017 09:55:39 -0400 |
parents | aba9dff6a61a |
children | e34d462cc342 |
files | tests/integration-tests/src/test/java/com/redhat/thermostat/gateway/tests/integration/IntegrationTest.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/integration-tests/src/test/java/com/redhat/thermostat/gateway/tests/integration/IntegrationTest.java Tue May 23 09:20:31 2017 -0400 +++ b/tests/integration-tests/src/test/java/com/redhat/thermostat/gateway/tests/integration/IntegrationTest.java Tue May 23 09:55:39 2017 -0400 @@ -106,9 +106,12 @@ }); try { - f.get(5000L, TimeUnit.MILLISECONDS); - } catch (ExecutionException | TimeoutException e) { + f.get(20L, TimeUnit.SECONDS); + } catch (ExecutionException e) { + e.printStackTrace(); fail(); + } catch (TimeoutException e) { + fail("20 seconds elapsed: Integration test timed out waiting for Server to start"); } }