tests/integration: throw if no unspent is given

This commit is contained in:
Daniel Cousens 2016-01-06 13:01:43 +11:00
parent 755c344e16
commit f9f41addda

View file

@ -27,6 +27,8 @@ testnet.faucet = function faucet (address, amount, done) {
return unspent.value > 1e3
}).pop()
if (!unspent) return callback(new Error('No unspent given'))
testnet.transactions.get(unspent.txId, function (err, tx) {
if (err) return callback(err)