Skip to content

Commit 4c87c60

Browse files
committed
Disable -race in CI
1 parent 6628a87 commit 4c87c60

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
go-version: ${{ matrix.go-version }}
2222
- name: Test
23-
run: go test -race -timeout 25m ./...
23+
run: go test -timeout 25m ./...
2424
lint:
2525
runs-on: ubuntu-22.04
2626
timeout-minutes: 15

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ go.sum: go.mod ## Go sum
2020
go mod verify
2121

2222
test: ## Runs tests
23-
@go test --race -timeout 30m ./...
23+
@go test -race -timeout 30m ./...
2424

2525
fmt: ## Formats the code
2626
@echo "Fixing long lines"

keysign/signature_notifier_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/libp2p/go-libp2p/core/peer"
1414
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
1515
"github.com/stretchr/testify/assert"
16+
"github.com/stretchr/testify/require"
1617
"github.com/zeta-chain/go-tss/conversion"
1718

1819
"github.com/zeta-chain/go-tss/common"
@@ -156,7 +157,7 @@ func TestSignatureNotifierBroadcastFirst(t *testing.T) {
156157
}))
157158

158159
n1.notifierLock.Lock()
159-
assert.Contains(t, n1.notifiers, messageID)
160+
require.Contains(t, n1.notifiers, messageID)
160161
notifier := n1.notifiers[messageID]
161162
n1.notifierLock.Unlock()
162163
assert.False(t, notifier.readyToProcess())

0 commit comments

Comments
 (0)