net/url is quoteing the input on Go 1.14
@@ -16,13 +16,13 @@ import (
func TestRun(t *testing.T) {
ckr := Run([]string{"-u", "hoge"})
assert.Equal(t, ckr.Status, checkers.CRITICAL, "chr.Status should be CRITICAL")
- assert.Equal(t, ckr.Message, `Get hoge: unsupported protocol scheme ""`, "something went wrong")
+ assert.Equal(t, ckr.Message, `Get "hoge": unsupported protocol scheme ""`, "something went wrong")
}
func TestNoCheckCertificate(t *testing.T) {
ckr := Run([]string{"--no-check-certificate", "-u", "hoge"})
assert.Equal(t, ckr.Status, checkers.CRITICAL, "chr.Status should be CRITICAL")
- assert.Equal(t, ckr.Message, `Get hoge: unsupported protocol scheme ""`, "something went wrong")
+ assert.Equal(t, ckr.Message, `Get "hoge": unsupported protocol scheme ""`, "something went wrong")
}
func TestStatusRange(t *testing.T) {
