mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
fix client-go util staticcheck error
This commit is contained in:
parent
8b0a7dea1d
commit
16c3ef2df8
@ -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.")
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user