ci: update golangci-lint to v2 (#5007)

This commit is contained in:
Marten Seemann
2025-03-30 12:16:14 +07:00
committed by GitHub
parent 4290638b55
commit 1d8f3f281a
24 changed files with 126 additions and 116 deletions

View File

@@ -249,7 +249,7 @@ func TestUnpackHeaderSampleLongHeader(t *testing.T) {
cs.EXPECT().GetHandshakeOpener().Return(mocks.NewMockLongHeaderOpener(mockCtrl), nil)
_, err = unpacker.UnpackLongHeader(hdr, data[:len(data)-1])
require.IsType(t, &headerParseError{}, err)
require.ErrorContains(t, err, "Packet too small. Expected at least 20 bytes after the header, got 19")
require.ErrorContains(t, err, "packet too small, expected at least 20 bytes after the header, got 19")
})
t.Run("minimal size", func(t *testing.T) {