Files
EdgeAPI/internal/installers/installer_base_test.go

22 lines
358 B
Go
Raw Normal View History

2020-09-06 16:19:54 +08:00
package installers
import (
"testing"
2024-07-27 14:15:25 +08:00
_ "github.com/iwind/TeaGo/bootstrap"
2020-09-06 16:19:54 +08:00
)
func TestBaseInstaller_LookupLatest(t *testing.T) {
installer := &BaseInstaller{}
result, err := installer.LookupLatestInstaller("edge-node-linux-amd64")
if err != nil {
t.Fatal(err)
}
if len(result) == 0 {
t.Log("not found")
return
}
t.Log("result:", result)
}