https://github.com/bonfida/test_native_pgrtest
https://github.com/bonfida/test_native_pgrtest
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bonfida/test_native_pgrtest
- Owner: Bonfida
- Created: 2022-07-12T15:55:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T12:06:51.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T03:45:58.383Z (over 1 year ago)
- Language: Rust
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Example test case of program test native code execution
Then running `cargo test` on this project will give you an example test case for the account resizing via CPI in native mode.
With program-test from the solana version of:
- origin/master branch of https://github.com/solana-labs/solana.git:
It will fail with a timeout followed by: `thread 'solana-bank-forks-client' panicked at 'Account data resizing not supported yet: 0 -> 10. Consider making this test conditional on `#[cfg(feature = "test-bpf")]`', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/solana-program-test-1.10.12/src/lib.rs:335:13`
- bonfida_fork/fix_program_test of https://github.com/Bonfida/solana:
First clone the fork and indicate its location the Cargo.toml patch section of this project.
Running this partially fixed version will work perfectly on this repo, yet this is not the intent of this program.