Skip to content

Commit

Permalink
test: run go test with -failfast
Browse files Browse the repository at this point in the history
Run `go test` to exit as soon as one test fails. While this may mean the test you care about never runs, it's better than waiting for a whole suite after one flake:

Since all our acceptance tests are in one package `-failfast` should work:

golang/go#33038
  • Loading branch information
bendrucker committed Jul 26, 2023
1 parent 7aadd4f commit 334ccf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
terraform_wrapper: false
- name: Acceptance tests
timeout-minutes: 25
run: make testacc
run: make testacc TESTARGS="-failfast"
env:
# Environment variables for configuring the provider
OBSERVE_CUSTOMER: ${{ vars.OBSERVE_CUSTOMER }}
Expand Down

0 comments on commit 334ccf3

Please sign in to comment.