From ce9aad4f0f439ee77647b49d0e7757b1a2d1119b Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Wed, 1 May 2024 18:16:00 +0100 Subject: [PATCH] Run tests 10 times to catch flaky tests Experience with fsnotify has shown this can be an issue, and the tests here seem fast enough. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e15e905..0075ae4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: with: go-version: '${{ matrix.go }}' - name: 'test' - run: 'go test --race ./...' + run: 'go test -race -count=10 ./...' staticcheck: name: 'staticcheck'