mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Fix error message in tests.
This commit is contained in:
parent
d30a95236d
commit
b900a7a2fc
@ -103,7 +103,7 @@ func TestAuthorityNew(t *testing.T) {
|
||||
c.Root = []string{"foo"}
|
||||
return &newTest{
|
||||
config: c,
|
||||
err: errors.New("open foo failed: no such file or directory"),
|
||||
err: errors.New("error reading foo: no such file or directory"),
|
||||
}
|
||||
},
|
||||
"fail bad password": func(t *testing.T) *newTest {
|
||||
@ -121,7 +121,7 @@ func TestAuthorityNew(t *testing.T) {
|
||||
c.IntermediateCert = "wrong"
|
||||
return &newTest{
|
||||
config: c,
|
||||
err: errors.New("open wrong failed: no such file or directory"),
|
||||
err: errors.New("error reading wrong: no such file or directory"),
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user