kubeadm: fix the err check bug in certlist test

This commit is contained in:
SataQiu 2024-01-26 11:01:03 +08:00
parent d3479eeeac
commit 5ab9f3d15f

View File

@ -189,7 +189,7 @@ func TestCreateCertificateChain(t *testing.T) {
t.Fatalf("unexpected error getting tree: %v", err)
}
if certTree.CreateTree(ic); err != nil {
if err := certTree.CreateTree(ic); err != nil {
t.Fatal(err)
}