From 70108c07232d47552e79087cfb7f1d0325276db3 Mon Sep 17 00:00:00 2001 From: Jo YoHan <37216082+slowhigh@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:31:17 +0900 Subject: [PATCH] test(form): fix test code for array collection format in form binding --- binding/form_mapping_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binding/form_mapping_test.go b/binding/form_mapping_test.go index c22fbadab7..c81bc4b428 100644 --- a/binding/form_mapping_test.go +++ b/binding/form_mapping_test.go @@ -15,6 +15,7 @@ import ( "time" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestMappingBaseTypes(t *testing.T) { @@ -288,7 +289,7 @@ func TestMappingCollectionFormat(t *testing.T) { "array_tsv": {"1 2"}, "array_pipes": {"1|2"}, }, "form") - assert.NoError(t, err) + require.NoError(t, err) assert.Equal(t, []int{1, 2}, s.SliceMulti) assert.Equal(t, []int{1, 2}, s.SliceCsv)