From ce8fef2307c9427251e77fe26ca3ebd25cce66ab Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Fri, 29 Sep 2023 13:57:54 +0300 Subject: [PATCH] fix tests --- pkg/schema/validate/string_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/schema/validate/string_test.go b/pkg/schema/validate/string_test.go index 156b5f63..d50edada 100644 --- a/pkg/schema/validate/string_test.go +++ b/pkg/schema/validate/string_test.go @@ -132,8 +132,6 @@ func TestStringValidate(t *testing.T) { }{ {"String Length Max", field.String().AddOptions(MaxLength(1)), "1", false, ""}, {"String Length Min", field.String().AddOptions(MinLength(1)), "1", false, ""}, - {"Nil Length Max", field.String().AddOptions(MaxLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""}, - {"Nil Length Min", field.String().AddOptions(MinLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""}, {"Int Length Max", field.String().AddOptions(MaxLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""}, {"Int Length Min", field.String().AddOptions(MinLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""}, {"Float Length Max", field.String().AddOptions(MaxLength(1)), 1.0, true, "validation error: incorrect type: \"float64\", expected \"string\""}, -- GitLab