mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Use silent mode if curl based tests to suppress progress meter display
This commit is contained in:
+2
-2
@@ -164,7 +164,7 @@ load 'libs/bats-support/load'
|
||||
}
|
||||
|
||||
@test "HTTP server: FTL responding correctly to HEAD request" {
|
||||
run bash -c "curl --head 127.0.0.1:4747"
|
||||
run bash -c "curl --head -s 127.0.0.1:4747"
|
||||
echo "output: ${lines[@]}"
|
||||
echo "curl exit code: ${status}"
|
||||
[[ ${lines[0]} == "HTTP/1.0 200 OK" ]]
|
||||
@@ -173,7 +173,7 @@ load 'libs/bats-support/load'
|
||||
}
|
||||
|
||||
@test "HTTP server: FTL responding correctly to GET request" {
|
||||
run bash -c "curl 127.0.0.1:4747"
|
||||
run bash -c "curl -s 127.0.0.1:4747"
|
||||
echo "output: ${lines[@]}"
|
||||
echo "curl exit code: ${status}"
|
||||
[[ "${status}" -eq 0 ]]
|
||||
|
||||
Reference in New Issue
Block a user