改进单元测试,以便于可以使用go test ../...进行执行

This commit is contained in:
GoEdgeLab
2024-04-14 19:59:56 +08:00
parent fe5c740196
commit 015f305607
8 changed files with 150 additions and 16 deletions

View File

@@ -11,4 +11,4 @@ go run -tags=${TAG} ../cmd/edge-node/main.go stop
# reference: https://pkg.go.dev/cmd/go/internal/test
go clean -testcache
go test -timeout 10s -tags="${TAG}" -cover ../...
go test -timeout 60s -tags="${TAG}" -cover ../...