From cf736d746d3e944251d2fe8b2554dec543dd8e84 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 18 May 2017 12:27:11 +0100 Subject: [PATCH] hook: Make go vet run all tests and fix warnings --- hooks/pre-commit | 2 +- .../dendrite/cmd/syncserver-integration-tests/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index d9ffbfba..09970441 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,6 +4,6 @@ set -eu golint src/... go fmt ./src/... -go tool vet --shadow ./src +go tool vet --all --shadow ./src gocyclo -over 12 src/ gb test diff --git a/src/github.com/matrix-org/dendrite/cmd/syncserver-integration-tests/main.go b/src/github.com/matrix-org/dendrite/cmd/syncserver-integration-tests/main.go index 80aaf242..b9c9caf1 100644 --- a/src/github.com/matrix-org/dendrite/cmd/syncserver-integration-tests/main.go +++ b/src/github.com/matrix-org/dendrite/cmd/syncserver-integration-tests/main.go @@ -286,7 +286,7 @@ func testSyncServer(syncServerCmdChan chan error, userID, since, want string) { if err != nil { fmt.Println("=============================================================================================") fmt.Println("sync server failed to run. If failing with 'pq: password authentication failed for user' try:") - fmt.Println(" export PGHOST=/var/run/postgresql\n") + fmt.Println(" export PGHOST=/var/run/postgresql") fmt.Println("=============================================================================================") panic(err) }