Made the test more reliable.

This commit is contained in:
Simone Bordet 2012-04-02 13:14:57 +02:00
parent bb429a7f18
commit bd0cc72439
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ public class ResetStreamTest extends AbstractTest
Assert.assertEquals(0, serverSession.getStreams().size());
Assert.assertTrue(rstLatch.await(5, TimeUnit.SECONDS));
// Need to sleep a while to give the chance to the implementation to remove the stream
TimeUnit.SECONDS.sleep(1);
Assert.assertEquals(0, clientSession.getStreams().size());
}