Browse Source

tests/integration: throw if no unspent is given

hk-custom-address
Daniel Cousens 9 years ago
parent
commit
f9f41addda
  1. 2
      test/integration/_blockchain.js

2
test/integration/_blockchain.js

@ -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…
Cancel
Save