From 6237d01948f04000d8e78bec94736e4d7bcfc988 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 21 Aug 2020 16:57:17 +0800 Subject: [PATCH] make test stable --- rpcx/internal/balancer/p2c/p2c_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcx/internal/balancer/p2c/p2c_test.go b/rpcx/internal/balancer/p2c/p2c_test.go index 5b8a2d3d..163ba934 100644 --- a/rpcx/internal/balancer/p2c/p2c_test.go +++ b/rpcx/internal/balancer/p2c/p2c_test.go @@ -51,8 +51,10 @@ func TestP2cPicker_Pick(t *testing.T) { } for _, test := range tests { + test := test t.Run(test.name, func(t *testing.T) { - const total = 10000 + t.Parallel() + const total = 100000 builder := new(p2cPickerBuilder) ready := make(map[resolver.Address]balancer.SubConn) for i := 0; i < test.candidates; i++ {