Skip to content

Commit

Permalink
test race require cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
savely-krasovsky committed Feb 2, 2022
1 parent 25ea7b5 commit e9d6976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
run: go test -race -v ./...

- name: Test race w/o CGO
run: CGO_ENABLED=0 go test -race -v ./...
run: go test -tags=ecies_test_race -race -v ./...
4 changes: 2 additions & 2 deletions secp256k1_cgo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build cgo
// +build cgo
//go:build cgo && !ecies_test_race
// +build cgo,!ecies_test_race

package eciesgo

Expand Down
4 changes: 2 additions & 2 deletions secp256k1_nocgo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !cgo
// +build !cgo
//go:build !cgo || ecies_test_race
// +build !cgo ecies_test_race

package eciesgo

Expand Down

0 comments on commit e9d6976

Please sign in to comment.