Skip to content

Commit b900a7a

Browse files
committed
Fix error message in tests.
1 parent d30a952 commit b900a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authority/authority_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func TestAuthorityNew(t *testing.T) {
103103
c.Root = []string{"foo"}
104104
return &newTest{
105105
config: c,
106-
err: errors.New("open foo failed: no such file or directory"),
106+
err: errors.New("error reading foo: no such file or directory"),
107107
}
108108
},
109109
"fail bad password": func(t *testing.T) *newTest {
@@ -121,7 +121,7 @@ func TestAuthorityNew(t *testing.T) {
121121
c.IntermediateCert = "wrong"
122122
return &newTest{
123123
config: c,
124-
err: errors.New("open wrong failed: no such file or directory"),
124+
err: errors.New("error reading wrong: no such file or directory"),
125125
}
126126
},
127127
}

0 commit comments

Comments
 (0)