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 ]