fix client-go util staticcheck error

Kubernetes-commit: 16c3ef2df8c12fcc4bc2596788fb6ee565b8eed8
This commit is contained in:
tangcong
2020-04-20 10:30:28 +08:00
committed by Kubernetes Publisher
parent ede92e0fe6
commit 403aae0467
2 changed files with 2 additions and 2 deletions

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))