Skip to content

Commit

Permalink
update ut
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCqupt committed Nov 5, 2024
1 parent 9f99d14 commit d696eee
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,15 @@ void testDisableReconnect() throws InterruptedException, TimeoutException {

@Test
void testConnectionEventListener() throws RemotingException, InterruptedException, TimeoutException {

connectionManager.connectionEventProcessor().addConnectionEventListener(new ConnectionEventListener() {
@Override
public void onEvent(ConnectionEvent connectionEvent, Connection connection) {
// threw exception will not affect others listener
throw new RuntimeException("test throw exception");
}
});

AtomicBoolean connectFlag = new AtomicBoolean(false);
AtomicReference<Connection> connectionRef1 = new AtomicReference<>();
connectionManager.connectionEventProcessor().addConnectionEventListener(new ConnectionEventListener() {
Expand Down

0 comments on commit d696eee

Please sign in to comment.