@Override
@After
public void tearDown() throws Exception {
+ fFacility.waitForJobs();
}
/**
TargetNodeComponent node = new TargetNodeComponent("myNode", root, host, fProxy);
root.addChild(node);
- node.connect();
-
fFacility.waitForJobs();
+ fFacility.executeCommand(node, "connect");
+ int i = 0;
+ while ((i < 10) && (node.getTargetNodeState() != TargetNodeState.CONNECTED)) {
+ i++;
+ fFacility.delay(TraceControlTestFacility.GUI_REFESH_DELAY);
+ }
+
// Verify that node is connected
assertEquals(TargetNodeState.CONNECTED, node.getTargetNodeState());