mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Fix: Correct on-connect tests
The actual failure or success was not reported at all before, additionally wait a bit before checking if the file is there.
This commit is contained in:
parent
1e46a19a0b
commit
64fc4720bf
@ -162,16 +162,27 @@ test_endpoint "killsource-adminauth" "admin/killsource?mount=%2F$MOUNT
|
||||
|
||||
echo "#"
|
||||
echo "# Testing on-connect handling with probing"
|
||||
|
||||
test_sourcing "on-connect-test-noauth" "test-on-connect.ogg" 401
|
||||
if [ -f "on-connect-success" ]; then
|
||||
sleep 3
|
||||
|
||||
if [ -f "$testdir/on-connect-success" ]; then
|
||||
manual_test_res "on-connect-notrigger" 0
|
||||
echo "# FAIL: on-connect triggered, even though it should not!"
|
||||
rm "$testdir/on-connect-success" > /dev/null 2>&1
|
||||
else
|
||||
manual_test_res "on-connect-notrigger" 1
|
||||
fi
|
||||
|
||||
test_sourcing "on-connect-test-sourceauth" "test-on-connect.ogg" 200 "$AUTH_SOURCE"
|
||||
if [ -f "on-connect-success" ]; then
|
||||
sleep 3
|
||||
|
||||
if [ -f "$testdir/on-connect-success" ]; then
|
||||
manual_test_res "on-connect-trigger" 1
|
||||
echo "# OK: on-connect triggered!"
|
||||
rm "$testdir/on-connect-success" > /dev/null 2>&1
|
||||
else
|
||||
manual_test_res "on-connect-trigger" 0
|
||||
echo "# FAIL: on-connect not triggered!"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user