From 1c19af62513617eb5d1dfcc5889f4fcb14212ca6 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 3 Sep 2020 16:31:58 +0200 Subject: [PATCH] add -race flag to tests --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4d7b251f..09f8a16a 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ format: define DOCKERFILE_TEST FROM amd64/$(BASE_IMAGE) -RUN apk add --no-cache make docker-cli git ffmpeg +RUN apk add --no-cache make docker-cli git ffmpeg gcc musl-dev WORKDIR /s COPY go.mod go.sum ./ RUN go mod download @@ -48,10 +48,9 @@ test: make test-nodocker test-nodocker: - $(eval export CGO_ENABLED=0) $(foreach IMG,$(shell echo test-images/*/ | xargs -n1 basename), \ docker build -q test-images/$(IMG) -t rtsp-simple-server-test-$(IMG)$(NL)) - go test -v . + go test -race -v . define DOCKERFILE_RUN FROM amd64/$(BASE_IMAGE)