mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-02 22:10:26 +08:00
21 lines
298 B
Go
21 lines
298 B
Go
package setup
|
|
|
|
import (
|
|
"testing"
|
|
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
)
|
|
|
|
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")
|
|
}
|