test: add short flag for store unit test because it's using dockertest for integration tests #369
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
try to solve issue #354 so that people using Guardian will have options of disabling store package test which uses dockertest that requires connecting to
/var/run/docker.sock
$ go test -count=1 -race -v -short github.com/odpf/guardian/internal/store/postgres === RUN TestActivityRepository activity_repository_test.go:32: --- SKIP: TestActivityRepository (0.00s) === RUN TestAppealRepository appeal_repository_test.go:393: --- SKIP: TestAppealRepository (0.00s) === RUN TestApprovalRepository approval_repository_test.go:30: --- SKIP: TestApprovalRepository (0.00s) === RUN TestGrantRepository grant_repository_test.go:34: --- SKIP: TestGrantRepository (0.00s) === RUN TestPolicyRepository policy_repository_test.go:208: --- SKIP: TestPolicyRepository (0.00s) === RUN TestProviderRepository provider_repository_test.go:381: --- SKIP: TestProviderRepository (0.00s) === RUN TestResourceRepository resource_repository_test.go:424: --- SKIP: TestResourceRepository (0.00s) PASS ok github.com/odpf/guardian/internal/store/postgres 0.691s