From 8b368b3832ca87f19c703ab48ba355e625190b2b Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 27 Oct 2021 15:15:27 +1100 Subject: [PATCH] Run all tests and benchmarks twice This helps detect bad cleanup in tests, which is very common. --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6e479633..c8ae26bb 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,7 @@ jobs: go-version: 1.17 - name: Test - run: go test -race ./... + run: go test -race -count 2 -bench . ./... - name: Bench run: go test -run @ -bench . ./...