Commit abca806f authored by Hunter Loftis's avatar Hunter Loftis

fix invalid-node test

parent b5001ae0
......@@ -18,7 +18,10 @@ install_nodejs() {
echo "Downloading and installing node $version..."
local download_url="https://s3pository.heroku.com/node/v$version/node-v$version-$os-$cpu.tar.gz"
curl "$download_url" --silent --fail --retry 5 --retry-max-time 15 -o /tmp/node.tar.gz || (echo "Unable to download node $version; does it exist?" && false)
local code=$(curl "$download_url" --silent --fail --retry 5 --retry-max-time 15 -o /tmp/node.tar.gz --write-out "%{http_code}")
if [ "$code" != "200" ]; then
echo "Unable to download node $version; does it exist?" && false
fi
tar xzf /tmp/node.tar.gz -C /tmp
rm -rf $dir/*
mv /tmp/node-v$version-$os-$cpu/* $dir
......
......@@ -9,6 +9,6 @@
"dependencies": {
},
"engines": {
"node": "0.11.33"
"node": "0.11.333"
}
}
......@@ -201,8 +201,8 @@ testConcurrencySaneMaximum() {
testInvalidNode() {
compile "invalid-node"
assertCaptured "Downloading and installing node 0.11.33"
assertCaptured "Unable to download node 0.11.33"
assertCaptured "Downloading and installing node 0.11.333"
assertCaptured "Unable to download node 0.11.333"
assertCapturedError
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment