diff --git a/test/timeout.sh b/test/timeout.sh index eb8d3c4..746b0aa 100755 --- a/test/timeout.sh +++ b/test/timeout.sh @@ -34,7 +34,7 @@ echo -n "${res:$i:1}" || true sleep 1 done -} | nc -l $PORT >/dev/null & +} | tail -n +1 | nc -l $PORT >/dev/null & PID=$! if timeout 10s time $DUB fetch dub --skip-registry=all --registry=http://localhost:$PORT; then die $LINENO 'Fetching from too slow registry should fail.'