Ignore staticcheck lint in test

This commit is contained in:
Andy Pan 2021-05-18 16:09:23 +08:00
parent a71395c7c8
commit 1a31e9a96b
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func BenchmarkMutex(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
m.Lock()
//nolint:staticcheck
m.Unlock()
}
})
@ -62,6 +63,7 @@ func BenchmarkSpinLock(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
spin.Lock()
//nolint:staticcheck
spin.Unlock()
}
})
@ -72,6 +74,7 @@ func BenchmarkBackOffSpinLock(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
spin.Lock()
//nolint:staticcheck
spin.Unlock()
}
})