Function ibc_test_framework::util::suspend::hang_on_error
source · [−]pub fn hang_on_error<R, E: Debug + Display>(
hang_on_fail: bool,
cont: impl FnOnce() -> Result<R, E>
) -> Result<R, E>Expand description
Suspends the test using suspend if hang_on_fail is true and if
the continuation returns Err.
The parameter hang_on_fail should be obtained from
TestConfig,
which in turns is set from the HANG_ON_FAIL environment variable.