Revert "t5562: replace /dev/zero with a pipe from generate_zero_bytes"
Revert cc95bc20 ("t5562: replace /dev/zero with a pipe from generate_zero_bytes", 2019-02-09), as not feeding anything to the command is a better way to test it.
Junio C Hamano committed
Feb 19, 2019 at 10:18 UTC
d99194822b8d8d3c7c2c8985b720b0e6a5542263
1 file changed
+2
-2
t/t5562-http-backend-content-length.sh
+2
-2
@@ -143,14 +143,14 @@ test_expect_success GZIP 'push gzipped empty' '
143
144
test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
145
NOT_FIT_IN_SSIZE=$(ssize_b100dots) &&
146
- generate_zero_bytes infinity | env \
146
+ env \
147
CONTENT_TYPE=application/x-git-upload-pack-request \
148
QUERY_STRING=/repo.git/git-upload-pack \
149
PATH_TRANSLATED="$PWD"/.git/git-upload-pack \
150
GIT_HTTP_EXPORT_ALL=TRUE \
151
REQUEST_METHOD=POST \
152
CONTENT_LENGTH="$NOT_FIT_IN_SSIZE" \
153
- git http-backend >/dev/null 2>err &&
153
+ git http-backend </dev/zero >/dev/null 2>err &&
154
grep "fatal:.*CONTENT_LENGTH" err
155
'
156