chore: add more tests (#2814)

This commit is contained in:
Kevin Wan
2023-01-24 12:03:05 +08:00
committed by GitHub
parent 4bd8025c5b
commit ceab564429
2 changed files with 18 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ func TestRpcServer(t *testing.T) {
Stat: true,
Prometheus: true,
Breaker: true,
}, WithMetrics(metrics))
}, WithMetrics(metrics), WithRpcHealth(true))
server.SetName("mock")
var wg sync.WaitGroup
var grpcServer *grpc.Server
@@ -48,7 +48,7 @@ func TestRpcServer_WithBadAddress(t *testing.T) {
Stat: true,
Prometheus: true,
Breaker: true,
})
}, WithRpcHealth(true))
server.SetName("mock")
err := server.Start(func(server *grpc.Server) {
mock.RegisterDepositServiceServer(server, new(mock.DepositServer))