Skip to main content

Questions tagged [bankclient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

Solana program tests are not running in isolated environment

I am running tests with cargo test-sbf. We have a Global Program State that needs to be created only once the lifetime of program. All the program tests are isolated that means I have to do it in all ...
Sushant Chandla's user avatar
0 votes
1 answer
145 views

Mocking the Clock sysvar in solana_program_test

I have a program as follows: Some state is initialized with a start_time Another instruction can be executed on that state, but only if the clock sysvar has passed the given start_time In my tests (...
oscarb.sol's user avatar
1 vote
1 answer
50 views

How to get logs of tx done in unit tests using programtest crate

So was doing some e2e testing using ProgramTest Create where we normally use the process_transaction api to execute tx but i was looking for a function which returned a signature or logs so i could ...
Nabeel Naveed's user avatar