Files
EdgeAPI/internal/utils/unzip_test.go
GoEdgeLab 5a17ae9d79 v1.4.1
2024-07-27 14:15:25 +08:00

18 lines
293 B
Go

package utils
import (
"testing"
"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")
}