From 082b054f4c479e0d8a4829b337fdb7a826baac8d Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sun, 11 Feb 2018 10:54:15 +0100 Subject: [PATCH] Improve build time The bcrypt hashing is really slow with enabled race condition checker, therefore we exlcude it. --- all-test-with-coverage.sh | 5 +++-- auth/authentication_test.go | 2 ++ auth/password_test.go | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/all-test-with-coverage.sh b/all-test-with-coverage.sh index 56bfcf1..6af7cbe 100644 --- a/all-test-with-coverage.sh +++ b/all-test-with-coverage.sh @@ -4,9 +4,10 @@ set -e echo "" > coverage.txt for d in $(go list ./... | grep -v vendor); do - go test -v -race -coverprofile=profile.out -covermode=atomic $d + go test -v -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >> coverage.txt rm profile.out fi -done \ No newline at end of file +done +go test -v -race ./... \ No newline at end of file diff --git a/auth/authentication_test.go b/auth/authentication_test.go index 5da2f35..49cc381 100644 --- a/auth/authentication_test.go +++ b/auth/authentication_test.go @@ -1,3 +1,5 @@ +// +build !race + package auth import ( diff --git a/auth/password_test.go b/auth/password_test.go index 0154225..fd254fb 100644 --- a/auth/password_test.go +++ b/auth/password_test.go @@ -1,3 +1,5 @@ +// +build !race + package auth import (