Skip to content

Commit be3c98b

Browse files
authored
Merge pull request #2870 from alexandear/fix-go-lint-issue-darwin
vz: fix lint issues in tests on darwin
2 parents 25baa9d + 7b380b7 commit be3c98b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/vz/network_darwin_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import (
1010
"testing"
1111
)
1212

13-
const vmnetMaxPacketSize = 1514
14-
const packetsCount = 1000
13+
const (
14+
vmnetMaxPacketSize = 1514
15+
packetsCount = 1000
16+
)
1517

1618
func TestDialQemu(t *testing.T) {
1719
listener, err := listenUnix(t.TempDir())
@@ -66,7 +68,7 @@ func TestDialQemu(t *testing.T) {
6668

6769
// quit packet format:
6870
// 0-4: "quit"
69-
copy(buf[:4], []byte("quit"))
71+
copy(buf[:4], "quit")
7072
if _, err := vzConn.Write(buf[:4]); err != nil {
7173
errc <- err
7274
return

0 commit comments

Comments
 (0)