Skip to content

Commit d3c019e

Browse files
committed
added integration test
1 parent f546e2e commit d3c019e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/github/shyiko/mysql/binlog/BinaryLogClientIntegrationTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,12 @@ public void testExceptionIsThrownWhenTryingToConnectAlreadyConnectedClient() thr
833833
client.connect();
834834
}
835835

836+
@Test(expectedExceptions = IOException.class)
837+
public void testExceptionIsThrownWhenTryingToConnectAlreadyConnectedClientWithTimeout() throws Exception {
838+
assertTrue(client.isConnected());
839+
client.connect(1000);
840+
}
841+
836842
@Test
837843
public void testExceptionIsThrownWhenProvidedWithWrongCredentials() throws Exception {
838844
BinaryLogClient binaryLogClient =

0 commit comments

Comments
 (0)