test: update go mod before testing(go mod tidy) (#2423)

This commit is contained in:
Monkey 2023-02-08 19:52:04 +08:00 committed by GitHub
parent 206ad44196
commit 1cb89d7f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ test: testdeps
set -e; for dir in $(GO_MOD_DIRS); do \ set -e; for dir in $(GO_MOD_DIRS); do \
echo "go test in $${dir}"; \ echo "go test in $${dir}"; \
(cd "$${dir}" && \ (cd "$${dir}" && \
go mod tidy -compat=1.18 && \
go test && \ go test && \
go test ./... -short -race && \ go test ./... -short -race && \
go test ./... -run=NONE -bench=. -benchmem && \ go test ./... -run=NONE -bench=. -benchmem && \