Ver Fonte

Merge branch 'master' into carl/publish-packages-workflow

Carl Tashian há 11 meses atrás
pai
commit
e9a1225e88
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      api/api_test.go
  2. 1 1
      ca/ca_test.go

+ 1 - 1
api/api_test.go

@@ -860,7 +860,7 @@ func Test_Root(t *testing.T) {
 		statusCode  int
 	}{
 		{"ok", parseCertificate(rootPEM), nil, "", 200},
-		{"fail", nil, fmt.Errorf("not found"), fmt.Sprintf("root certificate with fingerprint %q was not found", sha), 404},
+		{"fail", nil, fmt.Errorf("not found"), fmt.Sprintf(`root certificate with fingerprint \"%s\" was not found`, sha), 404},
 	}
 
 	// Request with chi context

+ 1 - 1
ca/ca_test.go

@@ -482,7 +482,7 @@ func TestCARoot(t *testing.T) {
 				ca:     ca,
 				sha:    "foo",
 				status: http.StatusNotFound,
-				errMsg: errs.NotFoundDefaultMsg,
+				errMsg: `root certificate with fingerprint "foo" was not found`,
 			}
 		},
 		"success": func(t *testing.T) *rootTest {