From aa74b51e6f021b0540e7ee4319223ab8c2eaf944 Mon Sep 17 00:00:00 2001 From: Ori Newman Date: Sun, 2 Feb 2020 15:26:26 +0200 Subject: [PATCH] [NOD-687] Remove -gcflags='-l' from all tests (#616) --- docker/Dockerfile | 2 +- test.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b11b402ab..6b7b9d284 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,7 +28,7 @@ RUN golint -set_exit_status ./... RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o kaspad . # Remove the line below and uncomment the line after it for testing with coverage -RUN go test -gcflags='-l' ./... +RUN go test ./... # RUN ./test.sh # --- multistage docker build: stage #2: runtime image diff --git a/test.sh b/test.sh index 1fb58449e..dbd9b7ad1 100755 --- a/test.sh +++ b/test.sh @@ -1,10 +1,9 @@ #!/bin/sh # Test each package separately -# Function inlining messes with monkey patching so we disable it by passing -gcflags='-l' # Running tests with -covermode=atomic saves us from race conditions unique to the testing environment go list ./... | \ - xargs -n1 -I{} sh -c "go test -gcflags='-l' -timeout 60s -covermode=atomic -cover {}" + xargs -n1 -I{} sh -c "go test -timeout 60s -covermode=atomic -cover {}" retVal=$? if [ $retVal -ne 0 ]