mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 15:00:26 +08:00
优化测试脚本
This commit is contained in:
@@ -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 ../...
|
||||||
Reference in New Issue
Block a user