From a773799688b778b40b42b804ef93e9299177fded Mon Sep 17 00:00:00 2001 From: Hanzei Date: Mon, 15 Apr 2019 12:12:54 +0200 Subject: [PATCH] Check more errors in tests --- conversions_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conversions_test.go b/conversions_test.go index 7c4464c..5071225 100644 --- a/conversions_test.go +++ b/conversions_test.go @@ -131,7 +131,8 @@ func TestConversionURLQuery(t *testing.T) { func TestConversionURLQueryNoSliceKeySuffix(t *testing.T) { m := getURLQueryMap() - objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixEmpty) + err := objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixEmpty) + require.Nil(t, err) u, err := m.URLQuery() assert.Nil(t, err) @@ -147,7 +148,8 @@ func TestConversionURLQueryNoSliceKeySuffix(t *testing.T) { func TestConversionURLQueryIndexSliceKeySuffix(t *testing.T) { m := getURLQueryMap() m.Set("mapSlice", []objx.Map{{"age": 40, "sex": "male"}, {"height": 152}}) - objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixIndex) + err := objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixIndex) + require.Nil(t, err) u, err := m.URLQuery() assert.Nil(t, err)