Files
EdgeAPI/internal/utils/unzip_test.go

18 lines
293 B
Go
Raw Normal View History

2020-09-06 16:19:54 +08:00
package utils
import (
2024-07-27 14:15:25 +08:00
"testing"
2020-09-06 16:19:54 +08:00
"github.com/iwind/TeaGo/Tea"
_ "github.com/iwind/TeaGo/bootstrap"
)
func TestUnzip_Run(t *testing.T) {
unzip := NewUnzip(Tea.Root+"/deploy/edge-node-v0.0.1.zip", Tea.Root+"/deploy/")
err := unzip.Run()
if err != nil {
t.Fatal(err)
}
t.Log("OK")
}