HDDS-1288. SCM - Failing test on trunk that waits for HB report processing. Contributed by Siddharth Wagle.
This commit is contained in:
parent
ec82e4cab2
commit
bf3b7fd732
@ -140,9 +140,8 @@ public void testNodeCountAndInfoMetricsReported() throws Exception {
|
||||
NodeReportProto nodeReport = NodeReportProto.newBuilder()
|
||||
.addStorageReport(storageReport).build();
|
||||
datanode.getDatanodeStateMachine().getContext().addReport(nodeReport);
|
||||
datanode.getDatanodeStateMachine().triggerHeartbeat();
|
||||
// Give some time so that SCM receives and processes the heartbeat.
|
||||
Thread.sleep(300L);
|
||||
cluster.getStorageContainerManager().getScmNodeManager()
|
||||
.processNodeReport(datanode.getDatanodeDetails(), nodeReport);
|
||||
|
||||
assertGauge("HealthyNodes", 1,
|
||||
getMetrics(SCMNodeMetrics.class.getSimpleName()));
|
||||
|
Loading…
Reference in New Issue
Block a user