CU of test has increased, accomodate only for this test

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-07-20 11:02:52 +02:00 committed by Christian Kamm
parent 3eae2cdc34
commit 39686d3d0f
2 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,6 @@ impl TestContextBuilder {
}));
// intentionally set to as tight as possible, to catch potential problems early
// TODO make configurable
test.set_compute_max_units(86000);
Self {

View File

@ -15,6 +15,7 @@ mod program_test;
#[tokio::test]
async fn test_margin_trade1() -> Result<(), BanksClientError> {
let mut builder = TestContextBuilder::new();
builder.test().set_compute_max_units(170000);
let margin_trade = builder.add_margin_trade_program();
let context = builder.start_default().await;
let solana = &context.solana.clone();