mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-17 05:29:32 +00:00
add test_gas_limits_check_insufficient_funds
This commit is contained in:
parent
2fadf0c82f
commit
eb14d632d9
@ -527,4 +527,14 @@ mod tests {
|
|||||||
assert!(result.is_ok());
|
assert!(result.is_ok());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_gas_limits_check_insufficient_funds() {
|
||||||
|
let message = 1;
|
||||||
|
let message_2 = 2;
|
||||||
|
let gas_calc = GasCalculator::new(1, 1, 1, 1, 1, 1000000, 1000000);
|
||||||
|
|
||||||
|
let result = gas_limits_check(vec![message, message_2], SUMMATION_ELF, &gas_calc, 1);
|
||||||
|
assert!(matches!(result, Err(ExecutionFailureKind::InsufficientFundsError)));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user