]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Run all tests and benchmarks twice
authorMatt Joiner <anacrolix@gmail.com>
Wed, 27 Oct 2021 04:15:27 +0000 (15:15 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 27 Oct 2021 04:15:27 +0000 (15:15 +1100)
This helps detect bad cleanup in tests, which is very common.

.github/workflows/go.yml

index 6e4796330697806c611b5ab3f4ee30e049f0dbbb..c8ae26bb567e0ee945ba05243f3986d45ac3ebb6 100644 (file)
@@ -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 . ./...