Resolve lint issues

This commit is contained in:
Andy Pan 2022-02-08 13:55:42 +08:00
parent 8d03fcf77f
commit 0fa2fd6dc1
1 changed files with 4 additions and 4 deletions

View File

@ -602,7 +602,7 @@ func TestReleaseWhenRunningPool(t *testing.T) {
}()
for i := 0; i < 30; i++ {
j := i
p.Submit(func() {
_ = p.Submit(func() {
t.Log("do task", j)
time.Sleep(1 * time.Second)
})
@ -617,7 +617,7 @@ func TestReleaseWhenRunningPool(t *testing.T) {
}()
for i := 100; i < 130; i++ {
j := i
p.Submit(func() {
_ = p.Submit(func() {
t.Log("do task", j)
time.Sleep(1 * time.Second)
})
@ -644,7 +644,7 @@ func TestReleaseWhenRunningPoolWithFunc(t *testing.T) {
t.Log("stop aaa")
}()
for i := 0; i < 30; i++ {
p.Invoke(i)
_ = p.Invoke(i)
}
}()
@ -655,7 +655,7 @@ func TestReleaseWhenRunningPoolWithFunc(t *testing.T) {
t.Log("stop bbb")
}()
for i := 100; i < 130; i++ {
p.Invoke(i)
_ = p.Invoke(i)
}
}()