From aead748c0d1f45e77b18adbd64a57495e5ecb97b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 19 Jul 2022 21:09:45 -0700 Subject: [PATCH] Use the race detector when running automated tests. --- .github/workflows/test.yaml | 2 +- test/automated/api/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c0b70767c..c2ec9f401 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -38,5 +38,5 @@ jobs: go-version: "^1" - name: Run tests - run: go test ./... + run: go test -race ./... diff --git a/test/automated/api/run.sh b/test/automated/api/run.sh index b2a3a1cda..fde189604 100755 --- a/test/automated/api/run.sh +++ b/test/automated/api/run.sh @@ -18,7 +18,7 @@ fi pushd ../../.. > /dev/null # Build and run owncast from source -go build -o owncast main.go +go build -race -o owncast main.go ./owncast -database $TEMP_DB & SERVER_PID=$!