diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 54ce8b96e..a42c01bd9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: cache: false # don't use cache for self-hosted runners - name: Unit Test - run: go test -race -covermode=atomic -coverprofile=coverage.txt ./... + run: go test -race -ldflags=-checklinkname=0 -covermode=atomic -coverprofile=coverage.txt ./... - name: Codecov run: bash <(curl -s https://codecov.io/bash) @@ -53,7 +53,7 @@ jobs: cache: false # don't use cache for self-hosted runners - name: Unit Test - run: go test -race -covermode=atomic ./... + run: go test -race -ldflags=-checklinkname=0 -covermode=atomic ./... hz-test-unix: runs-on: [ self-hosted, X64 ] diff --git a/.gitignore b/.gitignore index 02e193d54..338957806 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea .vscode pkg/app/fs.go.hertz.gz +coverage.txt coverage.out