Skip to content

Commit 8f46a7f

Browse files
committed
Aplly modernize and lint upgrades (refactor)
1 parent 2e01dff commit 8f46a7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

transport_go_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: MIT
33

44
//go:build !js
5-
// +build !js
65

76
package quic
87

@@ -108,8 +107,8 @@ func TestTransport_E2E(t *testing.T) {
108107

109108
// sent side
110109
var buf [2]byte
111-
for i := 0; i < count; i++ {
112-
testData := bytes.Repeat([]byte(fmt.Sprintf("%04d", i)), repeat)
110+
for i := range count {
111+
testData := bytes.Repeat(fmt.Appendf(nil, "%04d", i), repeat)
113112
binary.BigEndian.PutUint16(buf[:], uint16(i)) //nolint:gosec
114113
assert.GreaterOrEqual(t, len(testData), 2)
115114
testData = append(testData, buf[0], buf[1]) //nolint:gosec

0 commit comments

Comments
 (0)