do not reconnect console proxy in ut
@@ -319,6 +319,14 @@ public class ManagementServerConsoleProxyBackend extends AbstractConsoleProxyBac
private void handle(final ReconnectConsoleProxyMsg msg) {
final ReconnectConsoleProxyReply reply = new ReconnectConsoleProxyReply();
+
+ // Currently this message only do some local shell operations in management node,
+ // so we skip it during unit test.
+ if (CoreGlobalProperty.UNIT_TEST_ON) {
+ bus.reply(msg, reply);
+ return;
+ }
+
doConnectAgent(new Completion(msg) {
@Override
public void success() {
@@ -492,7 +500,6 @@ public class ManagementServerConsoleProxyBackend extends AbstractConsoleProxyBac
}
});
- if (!CoreGlobalProperty.UNIT_TEST_ON) {
flow(new NoRollbackFlow() {
String __name__ = "reconnect-console-proxy";
@Override
@@ -512,7 +519,6 @@ public class ManagementServerConsoleProxyBackend extends AbstractConsoleProxyBac
});
}
});
- }
done(new FlowDoneHandler(msg) {
@Override
