use of com.alipay.sofa.jraft.rpc.RpcRequests.ErrorResponse in project sofa-jraft by sofastack.
the class NodeRequestProcessorTest method testPeerIdNotFound.
@Test
public void testPeerIdNotFound() {
this.processor.handleRequest(asyncContext, TestUtils.createPingRequest());
ErrorResponse resp = (ErrorResponse) asyncContext.getResponseObject();
assertNotNull(resp);
assertEquals(RaftError.ENOENT.getNumber(), resp.getErrorCode());
assertEquals("Peer id not found: localhost:8081, group: test", resp.getErrorMsg());
}
Aggregations