优化测试脚本

This commit is contained in:
GoEdgeLab
2024-03-14 10:28:12 +08:00
parent 0c58b68bf5
commit c81db0f0ac

View File

@@ -6,6 +6,9 @@ if [ -z "$TAG" ]; then
TAG="community" TAG="community"
fi fi
# stop node
go run -tags=${TAG} ../cmd/edge-node/main.go stop
# reference: https://pkg.go.dev/cmd/go/internal/test # reference: https://pkg.go.dev/cmd/go/internal/test
go clean -testcache go clean -testcache
go test -timeout 10s -tags="${TAG}" -cover ../... go test -timeout 10s -tags="${TAG}" -cover ../...