aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-08-24 12:03:29 +0800
committerDan Finlay <dan@danfinlay.com>2017-08-24 12:03:29 +0800
commite057c37b337f34556af1734ceb44e7a4d9a7b08c (patch)
tree870f334264f2c8871ccb02b84628709e86c56e12 /test
parentdae7c632d6b7bed74abbe6bbc7b6b43deb2f2f0d (diff)
downloadtangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar.gz
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar.bz2
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar.lz
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar.xz
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.tar.zst
tangerine-wallet-browser-e057c37b337f34556af1734ceb44e7a4d9a7b08c.zip
Corrected test constraints
Diffstat (limited to 'test')
-rw-r--r--test/unit/nonce-tracker-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/nonce-tracker-test.js b/test/unit/nonce-tracker-test.js
index 5f247b46b..3312a3bd0 100644
--- a/test/unit/nonce-tracker-test.js
+++ b/test/unit/nonce-tracker-test.js
@@ -143,7 +143,7 @@ describe('Nonce Tracker', function () {
})
})
- describe('A normal usage condition.', function () {
+ describe('When all three return different values', function () {
beforeEach(function () {
const txGen = new MockTxGen()
const confirmedTxs = txGen.generate({ status: 'confirmed' }, { count: 10 })
@@ -158,7 +158,7 @@ describe('Nonce Tracker', function () {
it('should return nonce after network nonce', async function () {
this.timeout(15000)
const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
- assert.equal(nonceLock.nextNonce, '10', `nonce should be 10 got ${nonceLock.nextNonce}`)
+ assert.equal(nonceLock.nextNonce, '50', `nonce should be 50 got ${nonceLock.nextNonce}`)
await nonceLock.releaseLock()
})
})