From 85e9a091d0d019e5d057956e30df9b018c70288c Mon Sep 17 00:00:00 2001 From: xucong053 Date: Tue, 5 Jul 2022 22:36:34 +0800 Subject: [PATCH] fix: unittest --- hrp/runner_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hrp/runner_test.go b/hrp/runner_test.go index d5d7c30b..6b92fdf5 100644 --- a/hrp/runner_test.go +++ b/hrp/runner_test.go @@ -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() {