Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Dec 23, 2014
1 parent 0506ff8 commit 28af63d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/network/Chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ Chain.prototype._request = function (path, data) {
return body
}

throw new errors.NetworkChainError(response.statusMessage)
console.log(response)
throw new errors.NetworkChainError(response)
})
}

Expand Down
3 changes: 2 additions & 1 deletion test/network.Chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ var networkImplementationTest = require('./network.implementation.js')


networkImplementationTest({
class: require('../src').network.Chain
class: require('../src').network.Chain,
describe: describe.only
})
11 changes: 9 additions & 2 deletions test/network.implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ function networkImplementationTest(opts) {
spendUnconfirmedCoins: true
})
network = wallet.network
network.on('error', function (error) { throw error })
network.on('error', function (error) {
console.log(error.message)
console.log(error.stack)
//throw error
})
network.once('connect', done)
})

Expand Down Expand Up @@ -145,7 +149,10 @@ function networkImplementationTest(opts) {
})

it('sendTx', function (done) {
helpers.sendCoins(network).then(function () {}).done(done, done)
helpers.sendCoins(network).then(function () {}).catch(function (error) {
console.log(error.message)
console.log(error.stack)
}).done(done, done)
})

it('getHistory', function (done) {
Expand Down

0 comments on commit 28af63d

Please sign in to comment.