1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-26 03:52:12 +02:00

incr requests count in testBreaker

This commit is contained in:
程飞 2019-05-21 11:05:48 +08:00
parent 9acc8c5d86
commit b30df467a4

View File

@ -267,7 +267,7 @@ func testBreaker(t *testing.T) {
} }
defer conn.Close() defer conn.Close()
c := pb.NewGreeterClient(conn) c := pb.NewGreeterClient(conn)
for i := 0; i < 35; i++ { for i := 0; i < 50; i++ {
_, err := c.SayHello(context.Background(), &pb.HelloRequest{Name: "breaker_test"}) _, err := c.SayHello(context.Background(), &pb.HelloRequest{Name: "breaker_test"})
if err != nil { if err != nil {
if ecode.ServiceUnavailable.Equal(err) { if ecode.ServiceUnavailable.Equal(err) {