]> git.codecow.com Git - libnemo.git/commitdiff
Fix test account range.
authorChris Duncan <chris@codecow.com>
Tue, 11 Aug 2026 05:02:50 +0000 (22:02 -0700)
committerChris Duncan <chris@codecow.com>
Tue, 11 Aug 2026 05:02:50 +0000 (22:02 -0700)
test/test.refresh-accounts.mjs

index a4f55ce993f3c72add46d4f8b510bc376c2d1a93..f24b533d4423edb634ec3b35daaf00a87b22c50c 100644 (file)
@@ -160,10 +160,10 @@ await Promise.all([
                await test('should get balance, frontier, and representative for multiple accounts', async () => {
                        const wallet = await Wallet.load('BIP-44', TEST_PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)
                        await wallet.unlock(TEST_PASSWORD)
-                       const accounts = await wallet.refresh(rpc, 0, 2)
+                       const accounts = await wallet.refresh(rpc, 0, 3)
 
                        assert.equal(accounts.size, 3)
-                       for (let i = 0; i < 2; i++) {
+                       for (let i = 0; i < 3; i++) {
                                const account = accounts.get(i)
                                assert.exists(account)
                                assert.ok(account instanceof Account)