Skip to content

Commit 22f7082

Browse files
sampanedoakes
authored andcommitted
fix lint issues
Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
1 parent d36e22f commit 22f7082

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

src/ray/rpc/tests/BUILD.bazel

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//bazel:ray.bzl", "ray_cc_test")
1+
load("//bazel:ray.bzl", "ray_cc_library", "ray_cc_test")
22

33
ray_cc_test(
44
name = "rpc_chaos_test",
@@ -13,15 +13,25 @@ ray_cc_test(
1313
],
1414
)
1515

16+
ray_cc_library(
17+
name = "grpc_test_common",
18+
testonly = True,
19+
hdrs = ["grpc_test_common.h"],
20+
deps = [
21+
"//src/ray/protobuf:test_service_cc_grpc",
22+
"//src/ray/rpc:grpc_server",
23+
],
24+
)
25+
1626
ray_cc_test(
1727
name = "grpc_server_client_test",
1828
size = "small",
1929
srcs = [
2030
"grpc_server_client_test.cc",
21-
"grpc_test_common.h",
2231
],
2332
tags = ["team:core"],
2433
deps = [
34+
":grpc_test_common",
2535
"//src/ray/protobuf:test_service_cc_grpc",
2636
"//src/ray/rpc:grpc_client",
2737
"//src/ray/rpc:grpc_server",
@@ -34,13 +44,14 @@ ray_cc_test(
3444
size = "small",
3545
srcs = [
3646
"grpc_auth_token_tests.cc",
37-
"grpc_test_common.h",
3847
],
3948
tags = ["team:core"],
4049
deps = [
50+
":grpc_test_common",
4151
"//src/ray/protobuf:test_service_cc_grpc",
4252
"//src/ray/rpc:grpc_client",
4353
"//src/ray/rpc:grpc_server",
54+
"//src/ray/rpc/authentication:authentication_token_loader",
4455
"@com_google_googletest//:gtest_main",
4556
],
4657
)

src/ray/rpc/tests/grpc_auth_token_tests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include "ray/rpc/authentication/authentication_token_loader.h"
2323
#include "ray/rpc/grpc_client.h"
2424
#include "ray/rpc/grpc_server.h"
25+
#include "ray/rpc/tests/grpc_test_common.h"
2526
#include "src/ray/protobuf/test_service.grpc.pb.h"
26-
#include "src/ray/rpc/tests/grpc_test_common.h"
2727

2828
namespace ray {
2929
namespace rpc {

src/ray/rpc/tests/grpc_server_client_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include "gtest/gtest.h"
2020
#include "ray/rpc/grpc_client.h"
2121
#include "ray/rpc/grpc_server.h"
22+
#include "ray/rpc/tests/grpc_test_common.h"
2223
#include "src/ray/protobuf/test_service.grpc.pb.h"
23-
#include "src/ray/rpc/tests/grpc_test_common.h"
2424

2525
namespace ray {
2626
namespace rpc {

0 commit comments

Comments
 (0)