diff --git a/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java b/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java index 390746f4dce..e4350f20426 100644 --- a/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java +++ b/hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java @@ -195,6 +195,7 @@ public class TestEndPoint { // different from SCM server response scmId String newScmId = UUID.randomUUID().toString(); scmServerImpl.setScmId(newScmId); + rpcEndPoint.setState(EndpointStateMachine.EndPointStates.GETVERSION); newState = versionTask.call(); Assert.assertEquals(EndpointStateMachine.EndPointStates.SHUTDOWN, newState);