Skip to content

Commit

Permalink
Merge pull request #2870 from alexandear/fix-go-lint-issue-darwin
Browse files Browse the repository at this point in the history
vz: fix lint issues in tests on darwin
  • Loading branch information
jandubois authored Nov 7, 2024
2 parents 25baa9d + 7b380b7 commit be3c98b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/vz/network_darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import (
"testing"
)

const vmnetMaxPacketSize = 1514
const packetsCount = 1000
const (
vmnetMaxPacketSize = 1514
packetsCount = 1000
)

func TestDialQemu(t *testing.T) {
listener, err := listenUnix(t.TempDir())
Expand Down Expand Up @@ -66,7 +68,7 @@ func TestDialQemu(t *testing.T) {

// quit packet format:
// 0-4: "quit"
copy(buf[:4], []byte("quit"))
copy(buf[:4], "quit")
if _, err := vzConn.Write(buf[:4]); err != nil {
errc <- err
return
Expand Down

0 comments on commit be3c98b

Please sign in to comment.