From 7724fc2c7b91ccdde52a495a905259cfdb1d641c Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 10 Oct 2019 03:20:10 +0800 Subject: [PATCH] Increase code coverage --- worker_stack_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker_stack_test.go b/worker_stack_test.go index 695eba9..c9905cc 100644 --- a/worker_stack_test.go +++ b/worker_stack_test.go @@ -22,7 +22,7 @@ func TestNewWorkerStack(t *testing.T) { } func TestWorkerStack(t *testing.T) { - q := newWorkerStack(0) + q := newWorkerArray(arrayType(-1), 0) for i := 0; i < 5; i++ { err := q.insert(&goWorker{recycleTime: time.Now()})