Update CI configs to v0.7.2

Update lint scripts and CI configs.
Excluding codecov.yml.
This commit is contained in:
Pion
2022-04-27 03:28:51 +00:00
committed by Sean DuBois
parent e53f588922
commit 3d933930cc
22 changed files with 83 additions and 37 deletions

View File

@@ -1,6 +1,9 @@
package stun
import "testing"
import (
"errors"
"testing"
)
func TestDecodeErr_IsInvalidCookie(t *testing.T) {
m := new(Message)
@@ -16,8 +19,8 @@ func TestDecodeErr_IsInvalidCookie(t *testing.T) {
if err.Error() != expected {
t.Error(err, "!=", expected)
}
dErr, ok := err.(*DecodeErr)
if !ok {
var dErr *DecodeErr
if !errors.As(err, &dErr) {
t.Error("not decode error")
}
if !dErr.IsInvalidCookie() {