Merge pull request #382 from Windfarer/fix_warden_breaker_ut

Fix warden ut
pull/383/head
Tony 5 years ago committed by GitHub
commit 11051d3bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/net/rpc/warden/server_test.go

@ -293,7 +293,7 @@ func testBreaker(t *testing.T) {
} }
defer conn.Close() defer conn.Close()
c := pb.NewGreeterClient(conn) 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"}) _, err := c.SayHello(context.Background(), &pb.HelloRequest{Name: "breaker_test"})
if err != nil { if err != nil {
if ecode.EqualError(ecode.ServiceUnavailable, err) { if ecode.EqualError(ecode.ServiceUnavailable, err) {

Loading…
Cancel
Save