From 7e541079c7ec6373b7e424ca2eea1f0e2c7abf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 16 Nov 2018 07:40:10 +0000 Subject: [PATCH] Update test/sharness/t0184-http-proxy-over-p2p.sh License: MIT Signed-off-by: Ian Preston Co-Authored-By: ianopolous --- test/sharness/t0184-http-proxy-over-p2p.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sharness/t0184-http-proxy-over-p2p.sh b/test/sharness/t0184-http-proxy-over-p2p.sh index 65f0cf4c0..a1b908df3 100755 --- a/test/sharness/t0184-http-proxy-over-p2p.sh +++ b/test/sharness/t0184-http-proxy-over-p2p.sh @@ -32,7 +32,9 @@ function serve_http_once() { local status_code=${2:-"200 OK"} local length=$((1 + ${#body})) REMOTE_SERVER_LOG="server.log" + rm $REMOTE_SERVER_LOG echo -e "HTTP/1.1 $status_code\nContent-length: $length\n\n$body" | nc -l $WEB_SERVE_PORT 2>&1 > $REMOTE_SERVER_LOG & + test_wait_for_file 30 100ms $REMOTE_SERVER_LOG REMOTE_SERVER_PID=$! }