aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-03-29 05:09:45 +0800
committerDan Finlay <dan@danfinlay.com>2018-03-29 05:18:03 +0800
commitf50a7a8fe891a803e50cc256200e8ce8c903ea2e (patch)
tree9f992840304a683484b9f97c017b1fa422302e97 /test/unit
parent47039cc3a94ece44b109d3002b03508f97b82a36 (diff)
downloadtangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.gz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.bz2
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.lz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.xz
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.tar.zst
tangerine-wallet-browser-f50a7a8fe891a803e50cc256200e8ce8c903ea2e.zip
Rename variable to be more understandable
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/nonce-tracker-test.js21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/unit/nonce-tracker-test.js b/test/unit/nonce-tracker-test.js
index e17d491f1..5a27882ef 100644
--- a/test/unit/nonce-tracker-test.js
+++ b/test/unit/nonce-tracker-test.js
@@ -33,7 +33,25 @@ describe('Nonce Tracker', function () {
})
})
- describe.only('issue 3670', function () {
+ describe('sentry issue 476304902', function () {
+ beforeEach(function () {
+ const txGen = new MockTxGen()
+ pendingTxs = txGen.generate({ status: 'submitted' }, {
+ fromNonce: 3,
+ count: 29,
+ })
+ nonceTracker = generateNonceTrackerWith(pendingTxs, [], '0x3')
+ })
+
+ it('should return 9', async function () {
+ this.timeout(15000)
+ const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
+ assert.equal(nonceLock.nextNonce, '32', `nonce should be 32 got ${nonceLock.nextNonce}`)
+ await nonceLock.releaseLock()
+ })
+ })
+
+ describe('issue 3670', function () {
beforeEach(function () {
const txGen = new MockTxGen()
pendingTxs = txGen.generate({ status: 'submitted' }, {
@@ -46,7 +64,6 @@ describe('Nonce Tracker', function () {
it('should return 9', async function () {
this.timeout(15000)
const nonceLock = await nonceTracker.getNonceLock('0x7d3517b0d011698406d6e0aed8453f0be2697926')
- console.log(JSON.stringify(nonceLock, null, 2))
assert.equal(nonceLock.nextNonce, '9', `nonce should be 9 got ${nonceLock.nextNonce}`)
await nonceLock.releaseLock()
})