fix: unittest

This commit is contained in:
xucong053
2022-07-05 22:36:34 +08:00
parent 369d2c1ab3
commit 6ce66d149d

View File

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