Skip to content

Commit

Permalink
refine TestPacket() for armv7, #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Mar 22, 2024
1 parent 7a3cf42 commit 63f2635
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion network/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ func TestPacket(t *testing.T) {

// test NewPacket func
for i, v := range tc2 {
p := NewPacket(v.direction, v.ts1+timestamp16(), v.ts2+timestamp16(), []byte(v.payload))
t16 := timestamp16()
p := NewPacket(v.direction, v.ts1+t16, v.ts2+t16, []byte(v.payload))
// fmt.Printf("p.seq=%d\n", p.seq)

if v.payload != string(p.payload) {
Expand Down

0 comments on commit 63f2635

Please sign in to comment.