mirror of
https://github.com/pion/stun.git
synced 2025-09-27 04:05:57 +08:00
Update CI configs to v0.7.2
Update lint scripts and CI configs. Excluding codecov.yml.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user