diff options
author | zeripath <art27@cantab.net> | 2021-07-17 18:09:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 19:09:56 +0200 |
commit | e83abfc2898e499c64276fa1bf03e6ccf5aa0390 (patch) | |
tree | 200b456d3a1a8956d81fe4d1d7f9deea9a8151d6 /Makefile | |
parent | 93f31e1897562a588bed1227e46d1a5b34f52524 (diff) | |
download | gitea-e83abfc2898e499c64276fa1bf03e6ccf5aa0390.tar.gz gitea-e83abfc2898e499c64276fa1bf03e6ccf5aa0390.zip |
Prevent race in TestPersistableChannelQueue (#16468)
* Prevent race in TestPersistableChannelQueue
A slight race has become apparent in the TestPersistableChannelQueue.
This PR simply adds locking to prevent the race.
* make print value of "$(GOTESTFLAGS)" on test-backend and unit-test-coverage
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -359,7 +359,7 @@ test: test-frontend test-backend .PHONY: test-backend test-backend: - @echo "Running go test with -tags '$(TEST_TAGS)'..." + @echo "Running go test with $(GOTESTFLAGS) -tags '$(TEST_TAGS)'..." @$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='$(TEST_TAGS)' $(GO_PACKAGES) .PHONY: test-frontend @@ -389,7 +389,7 @@ coverage: .PHONY: unit-test-coverage unit-test-coverage: - @echo "Running unit-test-coverage -tags '$(TEST_TAGS)'..." + @echo "Running unit-test-coverage $(GOTESTFLAGS) -tags '$(TEST_TAGS)'..." @$(GO) test $(GOTESTFLAGS) -mod=vendor -tags='$(TEST_TAGS)' -cover -coverprofile coverage.out $(GO_PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1 .PHONY: vendor |