Skip to content

Commit 16c3ef2

Browse files
committed
fix client-go util staticcheck error
1 parent 8b0a7de commit 16c3ef2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

staging/src/k8s.io/client-go/util/cert/csr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestMakeCSR(t *testing.T) {
4949
}
5050
csrBlock, rest := pem.Decode(csrPEM)
5151
if csrBlock == nil {
52-
t.Error("Unable to decode MakeCSR result.")
52+
t.Fatal("Unable to decode MakeCSR result.")
5353
}
5454
if len(rest) != 0 {
5555
t.Error("Found more than one PEM encoded block in the result.")

staging/src/k8s.io/client-go/util/certificate/certificate_store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func TestUpdateTwoCerts(t *testing.T) {
314314
t.Errorf("Got %v while updating certificate store.", err)
315315
}
316316
if cert == nil {
317-
t.Errorf("Got nil certificate, expected something real.")
317+
t.Fatalf("Got nil certificate, expected something real.")
318318
}
319319
if len(cert.Certificate) != 2 {
320320
t.Fatalf("Unexpected number of certificates, expected 2, got %v", len(cert.Certificate))

0 commit comments

Comments
 (0)