Skip to content

Commit

Permalink
pglock: enforce GOEXPERIMENT=loopvar
Browse files Browse the repository at this point in the history
  • Loading branch information
ucirello committed Sep 26, 2023
1 parent 88bdc03 commit cc27b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ linters:
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint -j 1 run --disable-all -E "errcheck" -E "godot" -E "govet" -E "ineffassign" -E "staticcheck" -E "unparam" -E "unused"
test: linters
go test -count 1 -coverprofile=coverage.out -shuffle on -short -v -dsn="postgres://postgres:everyone@localhost:5432/postgres?sslmode=disable" || (sleep 5; go test -coverprofile=coverage.out -shuffle on -short -v -dsn="postgres://postgres:everyone@localhost:5432/postgres?sslmode=disable")
GOEXPERIMENT=loopvar go test -count 1 -coverprofile=coverage.out -shuffle on -short -v -dsn="postgres://postgres:everyone@localhost:5432/postgres?sslmode=disable" || (sleep 5; go test -coverprofile=coverage.out -shuffle on -short -v -dsn="postgres://postgres:everyone@localhost:5432/postgres?sslmode=disable")
go tool cover -html=coverage.out -o coverage.html

0 comments on commit cc27b53

Please sign in to comment.