Use the race detector when running automated tests.
This commit is contained in:
parent
fb2cad86f8
commit
aead748c0d
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@ -38,5 +38,5 @@ jobs:
|
||||
go-version: "^1"
|
||||
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
run: go test -race ./...
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user