summaryrefslogtreecommitdiff
path: root/t/lib-httpd.sh
diff options
context:
space:
mode:
authorLibravatar Josh Steadmon <steadmon@google.com>2019-02-06 14:19:10 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-06 12:20:23 -0800
commit30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd (patch)
tree1fe88d737e5591d63908517b57b244d1c857d143 /t/lib-httpd.sh
parentremote-curl: tighten "version 2" check for smart-http (diff)
downloadtgif-30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd.tar.xz
t5551: test server-side ERR packet
When a smart HTTP server sends an error message via pkt-line, we detect the error due to using PACKET_READ_DIE_ON_ERR_PACKET. This case was added by 2d103c31c2 (pack-protocol.txt: accept error packets in any context, 2018-12-29), but not covered by tests. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-httpd.sh')
-rw-r--r--t/lib-httpd.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh
index e465116ef9..216281eabc 100644
--- a/t/lib-httpd.sh
+++ b/t/lib-httpd.sh
@@ -131,6 +131,7 @@ prepare_httpd() {
mkdir -p "$HTTPD_DOCUMENT_ROOT_PATH"
cp "$TEST_PATH"/passwd "$HTTPD_ROOT_PATH"
install_script broken-smart-http.sh
+ install_script error-smart-http.sh
install_script error.sh
install_script apply-one-time-sed.sh