more requests, increase breaker being triggered probability

pull/382/head
Windfarer 5 years ago
parent fafc356412
commit 0c744289eb
  1. 2
      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) {

Loading…
Cancel
Save