From 0c744289eb83cc55933a2b1b394ac259e1df0d1e Mon Sep 17 00:00:00 2001 From: Windfarer Date: Sat, 12 Oct 2019 19:12:34 +0800 Subject: [PATCH] more requests, increase breaker being triggered probability --- pkg/net/rpc/warden/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/net/rpc/warden/server_test.go b/pkg/net/rpc/warden/server_test.go index 248caff4e..b6786290c 100644 --- a/pkg/net/rpc/warden/server_test.go +++ b/pkg/net/rpc/warden/server_test.go @@ -293,7 +293,7 @@ func testBreaker(t *testing.T) { } defer conn.Close() c := pb.NewGreeterClient(conn) - for i := 0; i < 50; i++ { + for i := 0; i < 1000; i++ { _, err := c.SayHello(context.Background(), &pb.HelloRequest{Name: "breaker_test"}) if err != nil { if ecode.EqualError(ecode.ServiceUnavailable, err) {