HDDS-2053. Fix TestOzoneManagerRatisServer failure. Contributed by Xiaoyu Yao. (#1373)
This commit is contained in:
parent
d69b811ddd
commit
650c4cead5
|
@ -205,6 +205,7 @@ public class TestOzoneManagerRatisServer {
|
|||
.setOMServiceId(customOmServiceId)
|
||||
.build();
|
||||
// Starts a single node Ratis server
|
||||
omRatisServer.stop();
|
||||
OzoneManagerRatisServer newOmRatisServer = OzoneManagerRatisServer
|
||||
.newOMRatisServer(newConf, ozoneManager, nodeDetails,
|
||||
Collections.emptyList());
|
||||
|
@ -219,6 +220,7 @@ public class TestOzoneManagerRatisServer {
|
|||
RaftGroupId raftGroupId = newOmRatisServer.getRaftGroup().getGroupId();
|
||||
Assert.assertEquals(uuid, raftGroupId.getUuid());
|
||||
Assert.assertEquals(raftGroupId.toByteString().size(), 16);
|
||||
newOmRatisServer.stop();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue