Skip to content

Commit

Permalink
Reduce exit sleep in tests run with race detector to zero (#820)
Browse files Browse the repository at this point in the history
Reduce exit sleep in tests run with race detector to zero
to make the tests run faster.
  • Loading branch information
masih authored Jan 14, 2025
1 parent c4b5f6a commit fb71a30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Go Test
on:
pull_request:
push:
branches: ["main"]
branches: [ "main" ]
workflow_dispatch:
merge_group:

Expand All @@ -14,6 +14,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true

env:
# Speed-up tests run with race detector by reducing default exit sleep of 1 s to 0.
# See: https://go.dev/doc/articles/race_detector#Options
GORACE: atexit_sleep_ms=0

jobs:
go-test:
uses: filecoin-project/unified-github-workflows/.github/workflows/[email protected]
Expand Down

0 comments on commit fb71a30

Please sign in to comment.