Skip to main content
3 events
when toggle format what by license comment
Jul 23, 2022 at 4:02 comment added trent.sol no. ProgramTest uses a very stripped down version of the runtime, not a full local-cluster. if you want to use devnet, you'd need to adapt your tests. however, as I alluded to in my answer, you don't really want to use devnet to back your test framework. use something that you have full control over, like the things my answer suggests
Jul 21, 2022 at 22:03 comment added gbb The test uses solana-programa-test. the line let (mut banks_client, payer, recent_blockhash) = program_test.start().await; connects to the local network, I suppose. Can I make the devnet client?
Jul 21, 2022 at 0:54 history answered trent.sol CC BY-SA 4.0