Made test more robust.

This commit is contained in:
Simone Bordet 2016-09-26 23:17:14 +02:00
parent a45e8b5154
commit cba4169ba9
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,10 @@ public class ConnectionStatisticsTest extends AbstractTest
Assert.assertThat(response.getStatus(), Matchers.equalTo(HttpStatus.OK_200));
// The bytes have already arrived, but give time to
// the server to finish to run the response logic.
Thread.sleep(1000);
// Close all connections.
stop();