From ea0628b6b0c74967c1dd6b62c4d97a9611f6d3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=8F=E5=86=9B?= Date: Sun, 15 Sep 2019 23:01:20 +0800 Subject: [PATCH] 1 --- workerpool/workerpool_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workerpool/workerpool_test.go b/workerpool/workerpool_test.go index f80126c..0a53341 100644 --- a/workerpool/workerpool_test.go +++ b/workerpool/workerpool_test.go @@ -10,7 +10,8 @@ import ( //template func TestWorkerPoolStart(t *testing.T) { - wp := New(10) //Set the maximum number of threads,设置最大线程数 + wp := New(10) //Set the maximum number of threads,设置最大线程数 + wp.SetTimeout(time.Millisecond) for i := 0; i < 20; i++ { //Open 20 requests 开启20个请求 ii := i wp.Do(func() error {