Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(ICRC_Ledger): FI-1666: Add subnet types support to ledger suite StateMachine tests #4132

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbjorkqvist
Copy link
Member

@mbjorkqvist mbjorkqvist commented Feb 26, 2025

Add support for application and system subnet types to ledger suite StateMachine tests.

Currently, most/all StateMachine tests for the ledger suite canisters (both ICP and ICRC ledger suites) are run using StateMachine::new(), which creates a subnet with SubnetType::System. The main difference between SubnetType::System and SubnetType::Application, is that no cycles are charged for the former.

If the approach proposed in this PR is deemed acceptable, the plan is to similarly adapt the rest of the tests in rs/ledger_suite/tests/sm-tests/src/lib.rs, such that ICP ledger tests would run on a system subnet, whereas ICRC ledger tests would run on an application subnet.

@github-actions github-actions bot added the test label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant