Add SKIP_UNIT_TESTS env
Some checks failed
Build / build (pull_request) Has been cancelled
Deploy Contract / deploy (pull_request) Has been cancelled
Lint / Run flake8 on python integration tests (pull_request) Has been cancelled
Lint / Run golangci-lint (pull_request) Has been cancelled
Tests / test-unit (pull_request) Successful in 5m55s
Tests / test-rpc (pull_request) Successful in 5m43s
Tests / sdk_tests (pull_request) Failing after 8m7s
Tests / test-importer (pull_request) Has been cancelled

This commit is contained in:
Thomas E Lackey 2024-01-22 23:50:59 -06:00
parent 1b37f46058
commit e1ca4ad3ac
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,9 @@ on:
jobs: jobs:
test-unit: test-unit:
# This test case doesn't work in CI, run as root.
env:
SKIP_UNIT_TESTS: TestInitConfigNonNotExistError
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3

View File

@ -316,7 +316,7 @@ TEST_TARGETS := test-unit test-unit-cover test-race
# Test runs-specific rules. To add a new test target, just add # Test runs-specific rules. To add a new test target, just add
# a new rule, customise ARGS or TEST_PACKAGES ad libitum, and # a new rule, customise ARGS or TEST_PACKAGES ad libitum, and
# append the new rule to the TEST_TARGETS list. # append the new rule to the TEST_TARGETS list.
test-unit: ARGS=-timeout=10m -race -test.v test-unit: ARGS=-timeout=10m -race -test.v -skip $(SKIP_UNIT_TESTS)
test-unit: TEST_PACKAGES=$(PACKAGES_UNIT) test-unit: TEST_PACKAGES=$(PACKAGES_UNIT)
test-race: ARGS=-race test-race: ARGS=-race