Fix ut failed

This commit is contained in:
lucheng
2024-07-03 09:46:46 +08:00
parent deb38c4e77
commit 444e68f980
2 changed files with 6 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ jobs:
run: go mod tidy
- name: Test
run: go test -v ./...
run: go test -gcflags=-l -v ./...
- name: Run build
run: make

View File

@@ -1,12 +1,17 @@
//go:build linux
package packet
import (
"testing"
"github.com/lucheng0127/virtuallan/pkg/cipher"
)
func TestAuthPktEncodeAndDecode(t *testing.T) {
user := "shawn"
passwd := "secret1111"
cipher.SetAESKey("0123456789abcdef")
pkt := &VLPkt{
VLHeader: VLHeader{Type: P_AUTH},