Skip to content

Commit

Permalink
Accept GasDepletion in panic test
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jul 30, 2020
1 parent 4335c97 commit e9958b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/hackatom/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ fn handle_panic() {
&to_vec(&HandleMsg::Panic {}).unwrap(),
);
match handle_res.unwrap_err() {
VmError::RuntimeErr { .. } => {}
// TODO: Don't accept GasDepletion here (https://github.com/CosmWasm/cosmwasm/issues/501)
VmError::RuntimeErr { .. } | VmError::GasDepletion => {}
err => panic!("Unexpected error: {:?}", err),
}
}
Expand Down

0 comments on commit e9958b4

Please sign in to comment.