Selaa lähdekoodia

Fix error message in tests.

Mariano Cano 6 vuotta sitten
vanhempi
sitoutus
b900a7a2fc
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      authority/authority_test.go

+ 2 - 2
authority/authority_test.go

@@ -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"),
 			}
 		},
 	}