Skip to content

Commit 6da12e3

Browse files
committed
Raise verify timeout in ChannelPoolTestBase
1 parent b0b640e commit 6da12e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/test/java/com/datastax/oss/driver/internal/core/pool/ChannelPoolResizeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void should_shrink_during_reconnection() throws Exception {
125125

126126
factoryHelper.waitForCalls(node, 2);
127127

128-
// Pool should have shrinked back to 2. We keep the most recent channels so 1 and 2 get closed.
128+
// Pool should have shrunk back to 2. We keep the most recent channels so 1 and 2 get closed.
129129
inOrder.verify(eventBus, VERIFY_TIMEOUT.times(2)).fire(ChannelEvent.channelOpened(node));
130130
inOrder.verify(eventBus, VERIFY_TIMEOUT.times(2)).fire(ChannelEvent.channelClosed(node));
131131
inOrder.verify(eventBus, VERIFY_TIMEOUT).fire(ChannelEvent.reconnectionStopped(node));

core/src/test/java/com/datastax/oss/driver/internal/core/pool/ChannelPoolTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
abstract class ChannelPoolTestBase {
5151

5252
/** How long we wait when verifying mocks for async invocations */
53-
protected static final VerificationWithTimeout VERIFY_TIMEOUT = timeout(500);
53+
protected static final VerificationWithTimeout VERIFY_TIMEOUT = timeout(2000);
5454

5555
@Mock protected InternalDriverContext context;
5656
@Mock private DriverConfig config;

0 commit comments

Comments
 (0)