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 86154b2 commit 65175f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests-2.4/pox-3-delegate-aggregation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {
standByForNextPoxCycle,
standByForPoxCycle,
standByForPoxCycleEnd,
standByForTx,
standByForTxSuccess,
standByUntilBurnBlock,
standByUntilBlock,
testEnv,
} from '../test-utils/test-helpers';
import { stxToMicroStx } from '../helpers';
Expand All @@ -32,7 +31,6 @@ import {
decodeClarityValue,
} from 'stacks-encoding-native-js';
import { AddressStxBalanceResponse } from '@stacks/stacks-blockchain-api-types';
import { DbTxStatus } from '../datastore/common';

describe('PoX-3 - Delegate aggregation increase operations', () => {
const seedKey = testnetKeys[4].secretKey;
Expand Down Expand Up @@ -430,6 +428,10 @@ 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);

// validate stacks-node balance
const coreBalanceInfo = await testEnv.client.getAccount(delegateeAccount.stxAddr);
expect(BigInt(coreBalanceInfo.locked)).toBe(0n);
Expand Down

0 comments on commit 65175f5

Please sign in to comment.