sodonnel commented on code in PR #11692:
URL: https://github.com/apache/ozone/pull/11692#discussion_r4359017680


##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/server/TestSCMDatanodeHeartbeatDispatcher.java:
##########
@@ -141,9 +144,10 @@ public <PAYLOAD, EVENT extends Event<PAYLOAD>> void 
fireEvent(
   }
 
   @Test
-  public void testVersionReportProcessedOnlyWhenPresent() throws IOException {
+  public void testVersionReportProcessedOnlyWhenPresent() throws IOException, 
NodeNotFoundException {
     NodeManager mockNodeManager = mock(NodeManager.class);
     when(mockNodeManager.isNodeRegistered(any())).thenReturn(true);
+    
when(mockNodeManager.getNodeStatus(any())).thenReturn(NodeStatus.inServiceStale());

Review Comment:
   It can be any state really, just so it correctly processes. I have changed 
it to healthy so make it more "normal".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to