Browse Source

Use the race detector when running automated tests.

pull/2015/head
Gabe Kangas 4 years ago committed by GitHub
parent
commit
aead748c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/test.yaml
  2. 2
      test/automated/api/run.sh

2
.github/workflows/test.yaml

@ -38,5 +38,5 @@ jobs: @@ -38,5 +38,5 @@ jobs:
go-version: "^1"
- name: Run tests
run: go test ./...
run: go test -race ./...

2
test/automated/api/run.sh

@ -18,7 +18,7 @@ fi @@ -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=$!

Loading…
Cancel
Save