Skip to content

Commit 71ce895

Browse files
committed
Update lint
1 parent d53fefc commit 71ce895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

transport_go_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func TestTransport_E2E(t *testing.T) {
111111
for i := 0; i < count; i++ {
112112
testData := bytes.Repeat([]byte(fmt.Sprintf("%04d", i)), repeat)
113113
binary.BigEndian.PutUint16(buf[:], uint16(i)) //nolint:gosec
114-
testData = append(testData, buf[0], buf[1])
114+
assert.GreaterOrEqual(t, len(testData), 2)
115+
testData = append(testData, buf[0], buf[1]) //nolint:gosec
115116

116117
_, _ = clientTx.Write(testData) // writing to a buffer never fails (hi golint)
117118

0 commit comments

Comments
 (0)