fix: unittest

This commit is contained in:
xucong053
2022-07-05 22:36:34 +08:00
parent ea95651eb3
commit 85e9a091d0

View File

@@ -3,6 +3,7 @@ package hrp
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
@@ -22,6 +23,8 @@ func buildHashicorpGoPlugin() {
func removeHashicorpGoPlugin() {
log.Info().Msg("[teardown] remove hashicorp go plugin")
os.Remove(tmpl("debugtalk.bin"))
pluginPath, _ := filepath.Abs(tmpl("debugtalk.bin"))
delete(pluginMap, pluginPath)
}
func buildHashicorpPyPlugin() {