Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Aug 2, 2024
1 parent 1d8d182 commit 2f4295d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-regtest-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
cd /tmp/regtest-env
sed -i 's/\(&STACKS_BLOCKCHAIN_COMMIT \).*/\1${{ github.event.inputs.core_commit || 'develop' }}/' docker-compose.yml
sed -i 's/\(&MINE_INTERVAL_EPOCH25 \).*/\12s/' docker-compose.yml
sed -i 's/\(&MINE_INTERVAL_EPOCH3 \).*/\17s/' docker-compose.yml
sed -i 's/\(&&NAKAMOTO_BLOCK_INTERVAL \).*/\13s/' docker-compose.yml
sed -i 's/\(&MINE_INTERVAL_EPOCH3 \).*/\16s/' docker-compose.yml
sed -i 's/\(&&NAKAMOTO_BLOCK_INTERVAL \).*/\14s/' docker-compose.yml
docker compose build
cat << EOF >> stacks-krypton-miner.toml
# DEVNET WALLETS
Expand Down
4 changes: 1 addition & 3 deletions src/tests/regtest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ describe('regtest-env pox-4', () => {

if (ENV.SKIP_UNLOCK) return;
await waitForBurnBlockHeight(info.details.unlock_height + 2);
await timeout(400);
info = await client.getStatus();
expect(info.stacked).toBeFalsy();

Expand Down Expand Up @@ -217,10 +216,9 @@ describe('regtest-env pox-4', () => {
.map(r => r.data)
.filter(d => d.signer_key.includes(signer.signerPublicKey));

// todo: this is incorrect on the stacks-node side currently, it shouldn't have the prepare offset included yet
expect(datas).toContainEqual(
expect.objectContaining({
start_cycle_id: (nextCycle + 1).toString(), // + prepare offset
start_cycle_id: nextCycle.toString(),
end_cycle_id: (nextCycle + lockPeriod).toString(),
})
);
Expand Down

0 comments on commit 2f4295d

Please sign in to comment.