mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
05.44.2012 59bb97b6cd1b6c950a88149b545641196b1ae145
Extend timeout for all tests (second try).
1 files modified
7 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/ConnectionFactoryTestCase.java 7 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/ConnectionFactoryTestCase.java
@@ -72,7 +72,6 @@
 * Tests the {@code ConnectionFactory} classes.
 */
@SuppressWarnings("javadoc")
@Test(timeOut = 10000)
public class ConnectionFactoryTestCase extends SdkTestCase {
    // Test timeout in ms for tests which need to wait for network events.
    private static final long TEST_TIMEOUT = 30L;
@@ -246,7 +245,7 @@
     *
     * @throws Exception
     */
    @Test(dataProvider = "connectionFactories")
    @Test(dataProvider = "connectionFactories", timeOut = TEST_TIMEOUT_MS)
    public void testBlockingFutureNoHandler(ConnectionFactory factory) throws Exception {
        final FutureResult<Connection> future = factory.getConnectionAsync(null);
        final Connection con = future.get();
@@ -261,7 +260,7 @@
     *
     * @throws Exception
     */
    @Test(dataProvider = "connectionFactories")
    @Test(dataProvider = "connectionFactories", timeOut = TEST_TIMEOUT_MS)
    public void testNonBlockingFutureWithHandler(ConnectionFactory factory) throws Exception {
        // Use the handler to get the result asynchronously.
        final CountDownLatch latch = new CountDownLatch(1);
@@ -281,7 +280,7 @@
     *
     * @throws Exception
     */
    @Test(dataProvider = "connectionFactories")
    @Test(dataProvider = "connectionFactories", timeOut = TEST_TIMEOUT_MS)
    public void testSynchronousConnection(ConnectionFactory factory) throws Exception {
        final Connection con = factory.getConnection();
        assertNotNull(con);