mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
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"
|
go-version: "^1"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./...
|
run: go test -race ./...
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ fi
|
|||||||
pushd ../../.. > /dev/null
|
pushd ../../.. > /dev/null
|
||||||
|
|
||||||
# Build and run owncast from source
|
# Build and run owncast from source
|
||||||
go build -o owncast main.go
|
go build -race -o owncast main.go
|
||||||
./owncast -database $TEMP_DB &
|
./owncast -database $TEMP_DB &
|
||||||
SERVER_PID=$!
|
SERVER_PID=$!
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user