Skip to content

Commit

Permalink
temporary workaround for an intermittent test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-adaptive committed Sep 14, 2023
1 parent f7bcea7 commit 95fc44a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void testConnectingAfterConnectionTimeouts()
assertEquals(Reply.State.TIMED_OUT, secondConnectReply.state());

// Make connections work again
debugTcpChannelSupplier.unpauseConnects();
debugTcpChannelSupplier.unpauseAndDiscardConnects();

// Now it should connect
connectSessions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ public synchronized void unpauseConnects()
connectsPaused = false;
}

public synchronized void unpauseAndDiscardConnects()
{
connectsPaused = false;
pausedOperations.clear();
}

protected void onFinishConnect(
final InitiatedChannelHandler channelHandler, final SocketChannel channel) throws IOException
{
Expand Down

0 comments on commit 95fc44a

Please sign in to comment.