Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota-byte committed Jun 25, 2024
1 parent 9d18091 commit 2d483ff
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ jobs:
exit 1
fi
- name: HEAD a file
run: |
curl -sI http://localhost:4221/files/pineapple_grape_grape_pineapple \
--output response.raw
printf "HTTP/1.1 200 OK\r\nContent-Type: application/octet-stream\r\nContent-Length: 69\r\n\r\n" > expected.raw
if ! diff response.raw expected.raw; then
echo "Test failed!"
exit 1
fi
- name: gzip test 1/2
run: |
curl --output response0.raw -si -H "Accept-Encoding: gzip" http://localhost:4221/echo/abc
Expand All @@ -109,15 +119,6 @@ jobs:
exit 1
fi
- name: HEAD a file
run: |
response=$(curl --output response.raw -si -X HEAD http://localhost:4221/files/pineapple_grape_grape_pineapple)
printf "HTTP/1.1 200 OK\r\nContent-Type: application/octet-stream\r\nContent-Length: 69\r\n\r\n" > expected.raw
if ! diff response.raw expected.raw; then
echo "Test failed!"
exit 1
fi
- name: Test concurrent connections
run: |
seq 1 10 | xargs -n1 -P10 curl -s -o /dev/null -w "%{http_code} %{time_total}\n" http://localhost:4221/

0 comments on commit 2d483ff

Please sign in to comment.