mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 02:20:24 +08:00
初步实现安装界面
This commit is contained in:
19
internal/setup/setup_test.go
Normal file
19
internal/setup/setup_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package setup
|
||||
|
||||
import (
|
||||
_ "github.com/iwind/TeaGo/bootstrap"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSetup_Run(t *testing.T) {
|
||||
setup := NewSetup(&Config{
|
||||
APINodeProtocol: "http",
|
||||
APINodeHost: "127.0.0.1",
|
||||
APINodePort: 8003,
|
||||
})
|
||||
err := setup.Run()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user