diff --git a/network/wsPeer_test.go b/network/wsPeer_test.go index 066ef68a34..4853b95e32 100644 --- a/network/wsPeer_test.go +++ b/network/wsPeer_test.go @@ -270,11 +270,10 @@ func getProtocolTags(t *testing.T) []string { for _, spec := range genDecl.Specs { if valueSpec, ok := spec.(*ast.ValueSpec); ok { for _, n := range valueSpec.Names { - if strings.HasSuffix(n.Name, "MaxSize") || n.Name == TagLength{ + if strings.HasSuffix(n.Name, "MaxSize") || n.Name == "TagLength" { continue } declaredTags = append(declaredTags, n.Name) - } } } }