fn sys_api_call_update_available_memory_2() {
    with_hypervisor(|hypervisor, tmp_path| {
        assert_eq!(
            execute_update(
                &hypervisor,
                r#"
                (module
                  (func (;0;)
                    i32.const 10
                    memory.grow
                    drop
                  )
                  (memory (;0;) 1 20)
                  (export "memory" (memory 0))
                  (export "canister_update test" (func 0)))"#,
                "test",
                EMPTY_PAYLOAD,
                tmp_path,
            )
            .2,
            CallContextAction::NoResponse {
                refund: Cycles::from(0),
            },
        );
    });
}
// Growing memory succeeds if given enough available memory.
Growing memory succeeds if given enough available memory.
Growing memory succeeds if given enough available memory .
fn sys_api_call_update_available_memory_2() {
    with_hypervisor(|hypervisor, tmp_path| {
        assert_eq!(
            execute_update(
                &hypervisor,
                r#"
                (module
                  (func (;0;)
                    i32.const 10
                    memory.grow
                    drop
                  )
                  (memory (;0;) 1 20)
                  (export "memory" (memory 0))
                  (export "canister_update test" (func 0)))"#,
                "test",
                EMPTY_PAYLOAD,
                tmp_path,
            )
            .2,
            CallContextAction::NoResponse {
                refund: Cycles::from(0),
            },
        );
    });
}
fn sys_api_call_update_available_memory_2 ( ) { with_hypervisor ( | hypervisor , tmp_path | { assert_eq ! ( execute_update ( hypervisor r#"
                (module
                  (func (;0;)
                    i32.const 10
                    memory.grow
                    drop
                  )
                  (memory (;0;) 1 20)
                  (export "memory" (memory 0))
                  (export "canister_update test" (func 0)))"# " " EMPTY_PAYLOAD tmp_path ) 2 CallContextAction NoResponse { refund Cycles from ( 0 ) } ) ; } ) ; }
Growing memory succeeds if given enough available memory.
Growing memory succeeds if given enough available memory .