From 8088497b9a1484dd2da7873ad9279a382e1da09d Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 23 Jun 2020 15:31:27 -0300 Subject: [PATCH] fix: test on go1.14 Signed-off-by: Carlos Alexandro Becker --- env_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env_test.go b/env_test.go index 69de9a8..c07d212 100644 --- a/env_test.go +++ b/env_test.go @@ -981,7 +981,7 @@ func TestParseInvalidURL(t *testing.T) { } var cfg config os.Setenv("EXAMPLE_URL_2", "nope://s s/") - assert.EqualError(t, Parse(&cfg), "env: parse error on field \"ExampleURL\" of type \"url.URL\": unable to parse URL: parse nope://s s/: invalid character \" \" in host name") + assert.EqualError(t, Parse(&cfg), "env: parse error on field \"ExampleURL\" of type \"url.URL\": unable to parse URL: parse \"nope://s s/\": invalid character \" \" in host name") } func ExampleParse() {