tests/integration: throw if no unspent is given
This commit is contained in:
parent
755c344e16
commit
f9f41addda
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user