tests work properly

This commit is contained in:
2023-08-29 21:34:00 +02:00
parent 8f04947e9f
commit d22ca255e1
4 changed files with 187 additions and 28 deletions

View File

@@ -1,13 +1,13 @@
#!/usr/bin/env bash
sleep 100
cd $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
set -o nounset
port="${1}"
db="$(mktemp)"
export SQLX_OFFLINE=true
export DATABASE_URL="sqlite://${db}"
cargo run -- --port "${port}"
exec ./target/debug/packager --port "${port}"