Skip to content

Commit

Permalink
fix: test on go1.14
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Jun 23, 2020
1 parent e8c6818 commit 8088497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env_test.go
Expand Up @@ -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() {
Expand Down

0 comments on commit 8088497

Please sign in to comment.