test:test hlc touch grpc service

This commit is contained in:
lgv 2025-09-01 16:30:07 +08:00
parent 11b0609a35
commit 4765a69c49
2 changed files with 4 additions and 4 deletions

View File

@ -64,12 +64,12 @@ target_link_libraries(grpc_humanoid_robot_client_test
add_executable(grpc_touch_client_test add_executable(grpc_hlc_client_test
${CMAKE_CURRENT_SOURCE_DIR}/grpc_touch_client_test.cpp ${CMAKE_CURRENT_SOURCE_DIR}/grpc_hlc_client_test.cpp
) )
target_link_libraries(grpc_touch_client_test target_link_libraries(grpc_hlc_client_test
PRIVATE PRIVATE
cmvr_es::device::canbus cmvr_es::device::canbus
cmvr_es::device::ti5motor cmvr_es::device::ti5motor

View File

@ -13,7 +13,7 @@ using namespace cmvr::api;
TEST(GrpcHlcClientTest, MyTest) { TEST(GrpcHlcClientTest, MyTest) {
// 连接服务端 // 连接服务端
auto channel = grpc::CreateChannel("0.0.0.0:50052", grpc::InsecureChannelCredentials()); auto channel = grpc::CreateChannel("0.0.0.0:50055", grpc::InsecureChannelCredentials());
auto stub = cmvr::api::HlcService::NewStub(channel); auto stub = cmvr::api::HlcService::NewStub(channel);