Skip to content

Commit 2bdc85a

Browse files
committed
update
1 parent 960c53f commit 2bdc85a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/luapi/plugin/plugins_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
package plugin
22

33
import (
4+
"path/filepath"
45
"testing"
56

67
"github.com/gvcgo/version-manager/internal/cnf"
78
"github.com/gvcgo/version-manager/internal/utils"
89
)
910

1011
func TestPlugins(t *testing.T) {
11-
pluginsDir := cnf.GetPluginDir()
12-
if !utils.PathIsExist(pluginsDir) {
12+
pluginsPath := filepath.Join(cnf.GetPluginDir(), "go.lua")
13+
if !utils.PathIsExist(pluginsPath) {
1314
return
1415
}
1516
ps := NewPlugins()

0 commit comments

Comments
 (0)