Skip to content

Commit

Permalink
Update tomobridge.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed May 29, 2020
1 parent d2665aa commit 543f0e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tomobridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('TomoBridge', () => {
})

describe('/GET deposit txs', () => {
it('it should GET the deposit txs', (done) => {
let url = urljoin(uri, 'api/transactions/getWrapTxs')
let url = urljoin(uri, 'api/transactions/getWrapTxs')
it(`GET ${url}`, (done) => {
let map = []
map.push(new Promise((resolve, reject) => {
let query = {
Expand Down Expand Up @@ -75,7 +75,7 @@ describe('TomoBridge', () => {
txs.forEach(tx => {
let inTx = tx.InTx
let outTx = tx.OutTx
if (moment().diff(tx.CreatedAt, 'seconds') > 1000) {
if (moment().diff(tx.CreatedAt, 'seconds') > 1500) {
expect(inTx.Amount).to.equal(outTx.Amount, `Stuck ETH deposit ${inTx.Hash}`)
}
})
Expand All @@ -99,7 +99,7 @@ describe('TomoBridge', () => {
txs.forEach(tx => {
let inTx = tx.InTx
let outTx = tx.OutTx
if (moment().diff(tx.CreatedAt, 'seconds') > 1000) {
if (moment().diff(tx.CreatedAt, 'seconds') > 1500) {
expect(inTx.Amount).to.equal(outTx.Amount, `Stuck USDT deposit ${inTx.Hash}`)
}
})
Expand Down

0 comments on commit 543f0e9

Please sign in to comment.