mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Assert cmd reply (#2030)
* Assert cmd reply Signed-off-by: Aredcap <zhangleilei19@mails.ucas.ac.cn> * fix unittest error Signed-off-by: Aredcap <zhangleilei19@mails.ucas.ac.cn>
This commit is contained in:
parent
889681f63a
commit
b55f249938
@ -935,19 +935,25 @@ TEST_F(RpcHandlerTest, CMD_TEST) {
|
||||
|
||||
command.set_cmd("tasktable");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
ASSERT_EQ(reply.status().error_code(), ::grpc::Status::OK.error_code());
|
||||
command.set_cmd("test");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
ASSERT_EQ(reply.status().error_code(), ::grpc::Status::OK.error_code());
|
||||
|
||||
command.set_cmd("status");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
ASSERT_EQ(reply.status().error_code(), ::grpc::Status::OK.error_code());
|
||||
command.set_cmd("mode");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
ASSERT_EQ(reply.status().error_code(), ::grpc::Status::OK.error_code());
|
||||
|
||||
command.set_cmd("build_commit_id");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
ASSERT_EQ(reply.status().error_code(), ::grpc::Status::OK.error_code());
|
||||
|
||||
command.set_cmd("set_config");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
|
||||
command.set_cmd("get_config");
|
||||
handler->Cmd(&context, &command, &reply);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user