Made test more reliable.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3256 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Simone Bordet 2011-05-25 14:15:35 +00:00
parent 922fb70344
commit be98ef70a1
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ public class SslTruncationAttackTest
SSLSocket sslSocket = (SSLSocket)sslContext.getSocketFactory().createSocket(socket, socket.getInetAddress().getHostName(), socket.getPort(), true);
sslSocket.setUseClientMode(true);
// Wait for the socket to be connected
TimeUnit.SECONDS.sleep(1);
handleCount.set(0);
// Send TCP FIN without SSL close alert