Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Sep 19, 2023
1 parent 65175f5 commit 484d2ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tests-2.4/pox-3-delegate-aggregation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
standByForPoxCycle,
standByForPoxCycleEnd,
standByForTxSuccess,
standByUntilBlock,
standByForAccountUnlock,
testEnv,
} from '../test-utils/test-helpers';
import { stxToMicroStx } from '../helpers';
Expand Down Expand Up @@ -428,9 +428,7 @@ describe('PoX-3 - Delegate aggregation increase operations', () => {
});

test('Validate account balances are unlocked', async () => {
// wait another block to ensure next pox cycle is returned after
const curBlock = await testEnv.client.getInfo();
await standByUntilBlock(curBlock.stacks_tip_height + 1);
await standByForAccountUnlock(delegateeAccount.stxAddr);

// validate stacks-node balance
const coreBalanceInfo = await testEnv.client.getAccount(delegateeAccount.stxAddr);
Expand Down

0 comments on commit 484d2ea

Please sign in to comment.