We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d53fefc commit 71ce895Copy full SHA for 71ce895
transport_go_test.go
@@ -111,7 +111,8 @@ func TestTransport_E2E(t *testing.T) {
111
for i := 0; i < count; i++ {
112
testData := bytes.Repeat([]byte(fmt.Sprintf("%04d", i)), repeat)
113
binary.BigEndian.PutUint16(buf[:], uint16(i)) //nolint:gosec
114
- testData = append(testData, buf[0], buf[1])
+ assert.GreaterOrEqual(t, len(testData), 2)
115
+ testData = append(testData, buf[0], buf[1]) //nolint:gosec
116
117
_, _ = clientTx.Write(testData) // writing to a buffer never fails (hi golint)
118
0 commit comments