From: Matt Joiner Date: Wed, 27 Oct 2021 04:15:27 +0000 (+1100) Subject: Run all tests and benchmarks twice X-Git-Tag: v1.34.1~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8b368b3832ca87f19c703ab48ba355e625190b2b;p=btrtrc.git Run all tests and benchmarks twice This helps detect bad cleanup in tests, which is very common. --- 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 . ./...