@cryptotaxi247 / kubo / commits / 7e541079c

Update test/sharness/t0184-http-proxy-over-p2p.sh

License: MIT Signed-off-by: Ian Preston <ianopolous@protonmail.com> Co-Authored-By: ianopolous <ianopolous@protonmail.com>

Łukasz Magiera committed Nov 16, 2018 at 07:40 UTC 7e541079c7ec6373b7e424ca2eea1f0e2c7abf24
1 file changed +2
test/sharness/t0184-http-proxy-over-p2p.sh
+2
@@ -32,7 +32,9 @@ function serve_http_once() {
32 local status_code=${2:-"200 OK"}
33 local length=$((1 + ${#body}))
34 REMOTE_SERVER_LOG="server.log"
35 + rm $REMOTE_SERVER_LOG
36 echo -e "HTTP/1.1 $status_code\nContent-length: $length\n\n$body" | nc -l $WEB_SERVE_PORT 2>&1 > $REMOTE_SERVER_LOG &
37 + test_wait_for_file 30 100ms $REMOTE_SERVER_LOG
38 REMOTE_SERVER_PID=$!
39 }
40