修复单元测试冲突,移除了 -race 参数

保持 CGO_ENABLED=0 用于编译阶段
This commit is contained in:
wangtianqi 2025-06-25 15:15:33 +08:00
parent 8c7c5c4287
commit fa853ce01d

2
Jenkinsfile vendored
View File

@ -111,7 +111,7 @@ pipeline {
echo '🧪 运行单元测试...' echo '🧪 运行单元测试...'
sh ''' sh '''
echo "运行测试并生成覆盖率报告..." echo "运行测试并生成覆盖率报告..."
go test -v -race -coverprofile=coverage.out -covermode=atomic ./... go test -v -coverprofile=coverage.out -covermode=atomic ./...
echo "生成HTML覆盖率报告..." echo "生成HTML覆盖率报告..."
go tool cover -html=coverage.out -o coverage.html go tool cover -html=coverage.out -o coverage.html