Procházet zdrojové kódy

Fix test error expectation in `TestAuthorityNew`

Herman Slatman před 2 roky
rodič
revize
949e2fdb1c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      authority/authority_test.go

+ 2 - 2
authority/authority_test.go

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