Skip to content

Commit 465d5a6

Browse files
authored
Fuzz tests: workaround for panics in fuzzer (#3974)
1 parent 6c8cb47 commit 465d5a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/fuzz-go.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
# support cross-module testing, and the provided directory may be in
107107
# a different module.
108108
cd "${{ matrix.package }}"
109-
go test -fuzz="${{ matrix.function }}\$" -run="${{ matrix.function }}\$" -fuzztime="${FUZZ_TIME}" .
109+
# Note: -parallel=1 is required to avoid race conditions in the fuzzer until https://github.com/golang/go/issues/56238 is fixed.
110+
go test -parallel=1 -fuzz="${{ matrix.function }}\$" -run="${{ matrix.function }}\$" -fuzztime="${FUZZ_TIME}" .
110111
env:
111112
FUZZ_TIME: ${{ inputs.fuzz-time }}
112113

0 commit comments

Comments
 (0)