mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 22:43:34 +08:00
fix: flaky test
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
|||||||
standByForPoxCycle,
|
standByForPoxCycle,
|
||||||
standByForPoxCycleEnd,
|
standByForPoxCycleEnd,
|
||||||
standByForTxSuccess,
|
standByForTxSuccess,
|
||||||
standByUntilBlock,
|
standByForAccountUnlock,
|
||||||
testEnv,
|
testEnv,
|
||||||
} from '../test-utils/test-helpers';
|
} from '../test-utils/test-helpers';
|
||||||
import { stxToMicroStx } from '../helpers';
|
import { stxToMicroStx } from '../helpers';
|
||||||
@@ -428,9 +428,7 @@ describe('PoX-3 - Delegate aggregation increase operations', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Validate account balances are unlocked', async () => {
|
test('Validate account balances are unlocked', async () => {
|
||||||
// wait another block to ensure next pox cycle is returned after
|
await standByForAccountUnlock(delegateeAccount.stxAddr);
|
||||||
const curBlock = await testEnv.client.getInfo();
|
|
||||||
await standByUntilBlock(curBlock.stacks_tip_height + 1);
|
|
||||||
|
|
||||||
// validate stacks-node balance
|
// validate stacks-node balance
|
||||||
const coreBalanceInfo = await testEnv.client.getAccount(delegateeAccount.stxAddr);
|
const coreBalanceInfo = await testEnv.client.getAccount(delegateeAccount.stxAddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user