Merge branch 'stress-test' into v5

This commit is contained in:
Josh Harvey 2017-07-26 01:12:41 +03:00
commit dd2db492d6
10 changed files with 113 additions and 68 deletions

View file

@ -0,0 +1,12 @@
const BN = require('../../../bn')
function ticker (account, fiatCode, cryptoCode) {
return Promise.resolve({
rates: {
ask: BN(105),
bid: BN(100)
}
})
}
module.exports = {ticker}

View file

@ -6,8 +6,8 @@ const NAME = 'FakeWallet'
const SECONDS = 1000
const PUBLISH_TIME = 2 * SECONDS
const AUTHORIZE_TIME = 8 * SECONDS
const CONFIRM_TIME = 180 * SECONDS
const AUTHORIZE_TIME = PUBLISH_TIME + 6 * SECONDS
const CONFIRM_TIME = AUTHORIZE_TIME + 180 * SECONDS
let t0