1
0
Fork 0

Try even and odd race testing

master
Philip O'Toole 1 year ago
parent 32782f8d07
commit 1ec13a50d0

@ -21,7 +21,7 @@ jobs:
- run: go test -failfast ./... - run: go test -failfast ./...
resource_class: large resource_class: large
race: race_odd:
docker: docker:
- image: cimg/go:1.20.0 - image: cimg/go:1.20.0
steps: steps:
@ -32,7 +32,22 @@ jobs:
- run: go version - run: go version
- run: go get -t -d ./... - run: go get -t -d ./...
- run: - run:
command: go test -failfast -timeout 20m -race ./... command: go test -failfast -timeout 20m -race $(go list ./... | sed -n 'n;p')
environment:
GORACE: "halt_on_error=1"
race_even:
docker:
- image: cimg/go:1.20.0
steps:
- checkout
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
- run: go version
- run: go get -t -d ./...
- run:
command: go test -failfast -timeout 20m -race $(go list ./... | sed -n 'p;n')
environment: environment:
GORACE: "halt_on_error=1" GORACE: "halt_on_error=1"
@ -153,7 +168,8 @@ workflows:
build_and_test: build_and_test:
jobs: jobs:
- test - test
- race - race_even
- race_odd
- end_to_end_single - end_to_end_single
- end_to_end_multi - end_to_end_multi
- end_to_end_multi_adv - end_to_end_multi_adv

Loading…
Cancel
Save