stop test hanging forever so we can work out what is going wrong with intermittant failure

This commit is contained in:
Greg Wilkins 2011-09-05 11:22:24 +10:00
parent 8a40a0d9fb
commit 68fe9c4b82
1 changed files with 1 additions and 0 deletions

View File

@ -242,6 +242,7 @@ public abstract class ContinuationBase extends TestCase
try
{
Socket socket = new Socket("localhost",port);
socket.setSoTimeout(10000);
socket.getOutputStream().write(request.getBytes("UTF-8"));
response = toString(socket.getInputStream());