From 7be0cc72df9b01922e6bc5b3e6e9c6ab57b3fc26 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Tue, 8 Sep 2020 15:53:25 +0300 Subject: [PATCH] Don't run home_test with race detection --- .githooks/pre-commit | 6 +++++- home/home_test.go | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index d933e462..4fd4e4f5 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,6 +1,10 @@ #!/bin/bash set -e; -git diff --cached --name-only | grep -q '.js$' && make lint-js; +git diff --cached --name-only | grep -q '.js$' && found=1 +if [ $found == 1 ]; then + make lint-js || exit 1 + npm run test --prefix client || exit 1 +fi found=0 git diff --cached --name-only | grep -q '.go$' && found=1 diff --git a/home/home_test.go b/home/home_test.go index 0868cb71..c78aee52 100644 --- a/home/home_test.go +++ b/home/home_test.go @@ -1,3 +1,5 @@ +// +build !race + package home import (