mirror of https://github.com/panjf2000/ants.git
Ignore staticcheck lint in test
This commit is contained in:
parent
a71395c7c8
commit
1a31e9a96b
|
@ -52,6 +52,7 @@ func BenchmarkMutex(b *testing.B) {
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
m.Lock()
|
m.Lock()
|
||||||
|
//nolint:staticcheck
|
||||||
m.Unlock()
|
m.Unlock()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -62,6 +63,7 @@ func BenchmarkSpinLock(b *testing.B) {
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
spin.Lock()
|
spin.Lock()
|
||||||
|
//nolint:staticcheck
|
||||||
spin.Unlock()
|
spin.Unlock()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -72,6 +74,7 @@ func BenchmarkBackOffSpinLock(b *testing.B) {
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
spin.Lock()
|
spin.Lock()
|
||||||
|
//nolint:staticcheck
|
||||||
spin.Unlock()
|
spin.Unlock()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue