From db87b0556f2563d4fbdd23b501c89b78d0219bcb Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 29 Mar 2024 14:37:58 +0800 Subject: [PATCH] ci: enable race detector --- .github/workflows/ci.yml | 2 +- pkcs8/pkcs8_norace_test.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197c044..634de53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Test with Coverage if: ${{ matrix.goVer == '1.18' }} - run: go test -coverpkg=./... -v -short -coverprofile=coverage1.txt -covermode=atomic ./... + run: go test -coverpkg=./... -v -short -race -coverprofile=coverage1.txt -covermode=atomic ./... env: GODEBUG: x509sha1=1 diff --git a/pkcs8/pkcs8_norace_test.go b/pkcs8/pkcs8_norace_test.go index 2bcaa1b..42957d2 100644 --- a/pkcs8/pkcs8_norace_test.go +++ b/pkcs8/pkcs8_norace_test.go @@ -1,5 +1,3 @@ -//go:build !race - package pkcs8_test import (