Adding timeouts on problematic tests to prevent CI abort

This commit is contained in:
Joakim Erdfelt 2013-06-19 20:53:23 -07:00
parent 8b252ecd9f
commit 89b22d0c90
1 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ public class MessageInputStreamTest
@Rule @Rule
public TestName testname = new TestName(); public TestName testname = new TestName();
@Test @Test(timeout=10000)
public void testBasicAppendRead() throws IOException public void testBasicAppendRead() throws IOException
{ {
LocalWebSocketConnection conn = new LocalWebSocketConnection(testname); LocalWebSocketConnection conn = new LocalWebSocketConnection(testname);
@ -64,7 +64,7 @@ public class MessageInputStreamTest
} }
} }
@Test @Test(timeout=10000)
public void testBlockOnRead() throws IOException public void testBlockOnRead() throws IOException
{ {
LocalWebSocketConnection conn = new LocalWebSocketConnection(testname); LocalWebSocketConnection conn = new LocalWebSocketConnection(testname);
@ -108,7 +108,7 @@ public class MessageInputStreamTest
} }
} }
@Test @Test(timeout=10000)
public void testBlockOnReadInitial() throws IOException public void testBlockOnReadInitial() throws IOException
{ {
LocalWebSocketConnection conn = new LocalWebSocketConnection(testname); LocalWebSocketConnection conn = new LocalWebSocketConnection(testname);
@ -147,7 +147,7 @@ public class MessageInputStreamTest
} }
} }
@Test @Test(timeout=10000)
public void testReadByteNoBuffersClosed() throws IOException public void testReadByteNoBuffersClosed() throws IOException
{ {
LocalWebSocketConnection conn = new LocalWebSocketConnection(testname); LocalWebSocketConnection conn = new LocalWebSocketConnection(testname);