mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix test error expectation in TestAuthorityNew
This commit is contained in:
@@ -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`),
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user