Skip to content

Commit 23b9520

Browse files
authored
set --max-time for curl to retrieve pulsar package (#1641)
1 parent 4d1d5cd commit 23b9520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pulsar/pulsar_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TAR_FILE="apache-pulsar-${VERSION}-bin.tar.gz"
2222

2323
echo "Downloading pulsar ${VERSION}"
2424
if [[ ! -f ${TAR_FILE} ]]; then
25-
curl --retry 10 -sSOL "https://archive.apache.org/dist/pulsar/pulsar-${VERSION}/${TAR_FILE}"
25+
curl --retry 10 --max-time 120 -sSOL "https://archive.apache.org/dist/pulsar/pulsar-${VERSION}/${TAR_FILE}"
2626
fi
2727

2828
tar -xzf ${TAR_FILE}

0 commit comments

Comments
 (0)