Update API tests (#3894)

* fix(test): remove done callback in tests

* fix(test): expect correct status code

* fix(test): remove logging of var
This commit is contained in:
Gabe Kangas
2024-08-21 14:44:09 -07:00
committed by GitHub
parent 545b9983f7
commit 04b1b30b7d
15 changed files with 224 additions and 328 deletions

View File

@@ -5,14 +5,17 @@ set -e
function install_ffmpeg() {
# install a specific version of ffmpeg
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux-"* ]]; then
OS="linux"
elif [[ "$OSTYPE" == "darwin"* ]]; then
OS="macos"
else
echo "Exiting!!!"
exit 1
fi
OS="linux"
FFMPEG_VER="5.1"
FFMPEG_PATH="$(pwd)/ffmpeg-$FFMPEG_VER"
PATH=$FFMPEG_PATH:$PATH
@@ -48,7 +51,7 @@ function start_owncast() {
# Build and run owncast from source
echo "Building owncast..."
pushd "$(git rev-parse --show-toplevel)" >/dev/null
go build -o owncast main.go
CGO_ENABLED=1 go build -o owncast main.go
echo "Running owncast..."
./owncast -database "$TEMP_DB" &