Merge pull request #90317 from tangcong/fix-client-go-staticcheck-err

fix client-go util staticcheck error
This commit is contained in:
Kubernetes Prow Robot 2020-04-21 20:56:15 -07:00 committed by GitHub
commit cb719f75aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func TestMakeCSR(t *testing.T) {
}
csrBlock, rest := pem.Decode(csrPEM)
if csrBlock == nil {
t.Error("Unable to decode MakeCSR result.")
t.Fatal("Unable to decode MakeCSR result.")
}
if len(rest) != 0 {
t.Error("Found more than one PEM encoded block in the result.")

View File

@ -314,7 +314,7 @@ func TestUpdateTwoCerts(t *testing.T) {
t.Errorf("Got %v while updating certificate store.", err)
}
if cert == nil {
t.Errorf("Got nil certificate, expected something real.")
t.Fatalf("Got nil certificate, expected something real.")
}
if len(cert.Certificate) != 2 {
t.Fatalf("Unexpected number of certificates, expected 2, got %v", len(cert.Certificate))