pub async fn start_with_context(self) -> ProgramTestContext {
        let (bank_forks, block_commitment_cache, last_blockhash, gci) = self.setup_bank();
        let target_tick_duration = gci.genesis_config.poh_config.target_tick_duration;
        let transport = start_local_server(
            bank_forks.clone(),
            block_commitment_cache.clone(),
            target_tick_duration,
        )
        .await;
        let banks_client = start_client(transport)
            .await
            .unwrap_or_else(|err| panic!("Failed to start banks client: {}", err));

        ProgramTestContext::new(
            bank_forks,
            block_commitment_cache,
            banks_client,
            last_blockhash,
            gci,
        )
    }
/// Start the test client
///
/// Returns a `BanksClient` interface into the test environment as well as a payer `Keypair`
/// with SOL for sending transactions
Start the test client
Returns a `BanksClient` interface into the test environment as well as a payer `Keypair`
with SOL for sending transactions
Start the test client Returns a ` BanksClient ` interface into the test environment as well as a payer ` Keypair ` with SOL for sending transactions
pub async fn start_with_context(self) -> ProgramTestContext {
        let (bank_forks, block_commitment_cache, last_blockhash, gci) = self.setup_bank();
        let target_tick_duration = gci.genesis_config.poh_config.target_tick_duration;
        let transport = start_local_server(
            bank_forks.clone(),
            block_commitment_cache.clone(),
            target_tick_duration,
        )
        .await;
        let banks_client = start_client(transport)
            .await
            .unwrap_or_else(|err| panic!("Failed to start banks client: {}", err));
        ProgramTestContext::new(
            bank_forks,
            block_commitment_cache,
            banks_client,
            last_blockhash,
            gci,
        )
    }
pub async fn start_with_context ( self ) -> ProgramTestContext { let ( bank_forks , block_commitment_cache , last_blockhash , gci ) = self . setup_bank ( ) ; let target_tick_duration = gci . genesis_config . poh_config . target_tick_duration ; let transport = start_local_server ( bank_forks . clone ( ) , block_commitment_cache . clone ( ) , target_tick_duration , ) . await ; let banks_client = start_client ( transport ) . await . unwrap_or_else ( | err | panic ! ( " " err ) ) ; ProgramTestContext :: new ( bank_forks , block_commitment_cache , banks_client , last_blockhash , gci , ) }
Start the test client
Returns a `BanksClient` interface into the test environment as well as a payer `Keypair`
with SOL for sending transactions
Start the test client Returns a ` BanksClient ` interface into the test environment as well as a payer ` Keypair ` with SOL for sending transactions
self