BUG-5280: handle NotLeaderException
[controller.git] / opendaylight / md-sal / cds-access-client / src / test / java / org / opendaylight / controller / cluster / access / client / ConnectedClientConnectionTest.java
index 60cdc3acc83ba365ac9cedd64554320eea9b666f..2c1159ef93977dc2efd223da6ac006c9b261885d 100644 (file)
@@ -28,7 +28,7 @@ public class ConnectedClientConnectionTest
     @Test
     public void testReconnectConnection() throws Exception {
         final ClientActorBehavior<BackendInfo> behavior = mock(ClientActorBehavior.class);
-        connection.reconnectConnection(behavior);
+        connection.lockedReconnect(behavior);
         verify(behavior).reconnectConnection(same(connection), any(ReconnectingClientConnection.class));
     }