mirror of
https://github.com/pion/stun.git
synced 2025-10-05 15:56:56 +08:00
Update CI configs to v0.4.5
Update lint scripts and CI configs. Excluding codecov.yml.
This commit is contained in:
@@ -12,7 +12,7 @@ func BenchmarkErrorCode_AddTo(b *testing.B) {
|
||||
m := New()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
CodeStaleNonce.AddTo(m)
|
||||
CodeStaleNonce.AddTo(m) //nolint: errcheck
|
||||
m.Reset()
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ func BenchmarkErrorCodeAttribute_AddTo(b *testing.B) {
|
||||
Reason: []byte("not found!"),
|
||||
}
|
||||
for i := 0; i < b.N; i++ {
|
||||
a.AddTo(m)
|
||||
a.AddTo(m) //nolint: errcheck
|
||||
m.Reset()
|
||||
}
|
||||
}
|
||||
@@ -37,9 +37,9 @@ func BenchmarkErrorCodeAttribute_GetFrom(b *testing.B) {
|
||||
Code: 404,
|
||||
Reason: []byte("not found!"),
|
||||
}
|
||||
a.AddTo(m)
|
||||
a.AddTo(m) //nolint: errcheck
|
||||
for i := 0; i < b.N; i++ {
|
||||
a.GetFrom(m)
|
||||
a.GetFrom(m) //nolint: errcheck
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ func TestMessage_AddErrorCode(t *testing.T) {
|
||||
copy(m.TransactionID[:], transactionID)
|
||||
expectedCode := ErrorCode(438)
|
||||
expectedReason := "Stale Nonce"
|
||||
CodeStaleNonce.AddTo(m)
|
||||
CodeStaleNonce.AddTo(m) //nolint: errcheck
|
||||
m.WriteHeader()
|
||||
|
||||
mRes := New()
|
||||
|
Reference in New Issue
Block a user