mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-16 07:46:35 +08:00
阶段性提交
This commit is contained in:
20
internal/installers/installer_base_test.go
Normal file
20
internal/installers/installer_base_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package installers
|
||||
|
||||
import (
|
||||
_ "github.com/iwind/TeaGo/bootstrap"
|
||||
"testing"
|
||||
)
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user