chore: fix linter (#11028)
This commit is contained in:
parent
098a0fc2b5
commit
58e2421a5b
91 changed files with 374 additions and 280 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestEncode(t *testing.T) {
|
||||
|
|
@ -27,7 +28,7 @@ func TestEncode(t *testing.T) {
|
|||
|
||||
for _, tc := range tc {
|
||||
out, err := encode(tc.in)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, tc.out, out)
|
||||
}
|
||||
}
|
||||
|
|
@ -44,7 +45,7 @@ func TestEncodeSlice(t *testing.T) {
|
|||
|
||||
for _, tc := range tc {
|
||||
out, err := encodeSlice(tc.in)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, tc.out, out)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue