Skip to content

Commit e4f48be

Browse files
authored
test: skip flaky phase test (#1932)
Co-authored-by: janniks <[email protected]>
1 parent 2ba36f9 commit e4f48be

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/tests-2.5/pox-4-rosetta-cycle-phases.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ import { stackStxWithRosetta, standByUntilBurnBlock, testEnv } from '../test-uti
55

66
const REWARD_CYCLE_LENGTH = 5; // assuming regtest
77
const BLOCK_SHIFT_COUNT: { shift: number }[] = [];
8-
for (let shift = 0; shift < REWARD_CYCLE_LENGTH; shift++) {
9-
BLOCK_SHIFT_COUNT.push({ shift });
10-
}
8+
BLOCK_SHIFT_COUNT.push(...Array.from({ length: REWARD_CYCLE_LENGTH }, (_, shift) => ({ shift })));
119

1210
const account = testnetKeys[1];
1311
const btcAddr = '2N74VLxyT79VGHiBK2zEg3a9HJG7rEc5F3o';
1412

1513
const signerPrivKey = '929c9b8581473c67df8a21c2a4a12f74762d913dd39d91295ee96e779124bca9';
1614
const signerPubKey = '033b67384665cbc3a36052a2d1c739a6cd1222cd451c499400c9d42e2041a56161';
1715

18-
describe.each(BLOCK_SHIFT_COUNT)(
16+
// skipped:
17+
// right now, these tests often run into timing issues, so they are skipped.
18+
// rosetta calls aren't all finished yet, while the chain has advanced by one.
19+
// in some cases this is fast enough that the test will be successful again,
20+
// even though it doesn't test what it should. in others, it will fail.
21+
// a potential solution would be to somehow control when the chain advances.
22+
describe.skip.each(BLOCK_SHIFT_COUNT)(
1923
'PoX-4 - Rosetta - Stack on any phase of cycle $shift',
2024
({ shift }) => {
2125
test('Standby for cycle phase', async () => {

0 commit comments

Comments
 (0)