Fix test error expectation in `TestAuthorityNew`

pull/1817/head
Herman Slatman 3 weeks ago
parent 281efbb949
commit 949e2fdb1c
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -113,7 +113,7 @@ func TestAuthorityNew(t *testing.T) {
c.Root = []string{"foo"}
return &newTest{
config: c,
err: errors.New("error reading foo: no such file or directory"),
err: errors.New(`error reading "foo": no such file or directory`),
}
},
"fail bad password": func(t *testing.T) *newTest {
@ -131,7 +131,7 @@ func TestAuthorityNew(t *testing.T) {
c.IntermediateCert = "wrong"
return &newTest{
config: c,
err: errors.New("error reading wrong: no such file or directory"),
err: errors.New(`error reading "wrong": no such file or directory`),
}
},
}

Loading…
Cancel
Save