Skip to content

Fix incorrect undelegate CU limit in assertion message - #201

Merged
snawaz merged 1 commit into
magicblock-labs:mainfrom
t0mw4lker:patch-1
Aug 11, 2026
Merged

Fix incorrect undelegate CU limit in assertion message#201
snawaz merged 1 commit into
magicblock-labs:mainfrom
t0mw4lker:patch-1

Conversation

@t0mw4lker

@t0mw4lker t0mw4lker commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Fix the Undelegate account test assertion message in tests/integration/tests/test-delegation.ts.

The assertion checks a CU limit of 45000, but its error message incorrectly references 18500, which is the limit used by the separate Delegate one PDA test. Update the message to 45000 so the diagnostic output matches the actual assertion threshold.

Summary by CodeRabbit

  • Tests
    • Updated the undelegation compute-unit assertion to reflect the current 45,000-unit limit.

Fix the Undelegate account test assertion message in `tests/integration/tests/test-delegation.ts`.

The assertion checks a CU limit of `45000`, but its error message incorrectly references `18500`, which is the limit used by the separate [Delegate one PDA] test. Update the message to `45000` so the diagnostic output matches the actual assertion threshold.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7db17f86-c84c-43d4-9923-a3a6d6b03c80

📥 Commits

Reviewing files that changed from the base of the PR and between dcd46dc and c9bf990.

📒 Files selected for processing (1)
  • tests/integration/tests/test-delegation.ts

📝 Walkthrough

Walkthrough

The undelegation integration test now expects a 45,000-unit compute limit instead of 18,500 units.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bmuddha
bmuddha requested a review from snawaz August 11, 2026 07:50

@snawaz snawaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR.

@snawaz
snawaz merged commit 1271ee7 into magicblock-labs:main Aug 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants