Skip to content

Commit 6e9f4ab

Browse files
committed
Fix unstake queue test
Previous test started failing, because the person completed the unstake after 1.5 years. Now replaced with address which didn't withdraw 10 ETH. Hoping at some point this test will fail again, when the owner completes unstake and receives their funds.
1 parent 9722adb commit 6e9f4ab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/ethereum/test/getUnstakeQueue.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ describe('EthereumStaker.getUnstakeQueue', () => {
1212

1313
beforeEach(async () => {
1414
const setup = await prepareTests()
15-
// Use stale delegator address which never unstaked
16-
delegatorAddress = '0x9685b00aa0db8eccc1684c1155b826169ce48d3d'
15+
// Use stale delegator address which unstaked 10(!) ETH, but didn't withdraw in 1.5 years.
16+
delegatorAddress = '0x4eaffedbf424cf2f9a23573300a2771d356b4115'
1717
validatorAddress = setup.validatorAddress
1818
staker = setup.staker
1919
})
@@ -31,12 +31,12 @@ describe('EthereumStaker.getUnstakeQueue', () => {
3131
})
3232

3333
assert.deepInclude(unstakeQueue, {
34-
exitQueueIndex: '25',
35-
positionTicket: '98310168873892613271',
36-
timestamp: 1712647703000,
34+
positionTicket: '98633389235894282013',
35+
exitQueueIndex: '28',
36+
timestamp: 1716397043000,
3737
isWithdrawable: true,
38-
totalAmount: '0.100003157585081498',
39-
withdrawableAmount: '0.100003157585081498',
38+
totalAmount: '10.028571579276028356',
39+
withdrawableAmount: '10.028571579276028356',
4040
withdrawalTimestamp: 0
4141
})
4242
})

0 commit comments

Comments
 (0)