From 6ef4fb589c70038e6f6d1d165cf6feb575f9aadf Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 00:36:55 +0300 Subject: Reduce AllocateTimeout in Test_StaticPool_AllocateTimeout to 1 Nanosecond for proper test --- static_pool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static_pool_test.go') diff --git a/static_pool_test.go b/static_pool_test.go index 05650d17..793ef071 100644 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -218,7 +218,7 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) { NewPipeFactory(), Config{ NumWorkers: 1, - AllocateTimeout: time.Millisecond * 50, + AllocateTimeout: time.Nanosecond * 1, DestroyTimeout: time.Second * 2, }, ) -- cgit v1.2.3