Test: aria2 task monitor 100% cover

This commit is contained in:
HFO4
2021-11-11 19:49:02 +08:00
parent 4b88eacb6a
commit f0089045d7
5 changed files with 218 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ func TestInit(t *testing.T) {
func TestPool_Submit(t *testing.T) {
asserts := assert.New(t)
pool := &Pool{
pool := &AsyncPool{
idleWorker: make(chan int, 1),
}
pool.Add(1)