forked from mirror/ants
Increase code coverage
This commit is contained in:
parent
566511ec5f
commit
7724fc2c7b
|
@ -22,7 +22,7 @@ func TestNewWorkerStack(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestWorkerStack(t *testing.T) {
|
func TestWorkerStack(t *testing.T) {
|
||||||
q := newWorkerStack(0)
|
q := newWorkerArray(arrayType(-1), 0)
|
||||||
|
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
err := q.insert(&goWorker{recycleTime: time.Now()})
|
err := q.insert(&goWorker{recycleTime: time.Now()})
|
||||||
|
|
Loading…
Reference in New Issue