Skip to content

Commit

Permalink
vz: fix lint issues in tests on darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Redko <[email protected]>
  • Loading branch information
alexandear committed Nov 7, 2024
1 parent 25baa9d commit 7b380b7
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 7b380b7

Please sign in to comment.