fix: nil pointer

This commit is contained in:
Fu Diwei
2025-01-07 01:10:26 +08:00
parent 9a937fa072
commit 7e376071f5
3 changed files with 17 additions and 22 deletions

View File

@@ -74,7 +74,6 @@ func TestDeploy(t *testing.T) {
})
if err != nil {
t.Errorf("err: %+v", err)
panic(err)
}
fInputCertData, _ := os.ReadFile(fInputCertPath)
@@ -82,7 +81,6 @@ func TestDeploy(t *testing.T) {
res, err := deployer.Deploy(context.Background(), string(fInputCertData), string(fInputKeyData))
if err != nil {
t.Errorf("err: %+v", err)
panic(err)
}
t.Logf("ok: %v", res)