Function ibc_test_framework::util::retry::assert_eventually_succeed
source · [−]pub fn assert_eventually_succeed<R>(
task_name: &str,
attempts: u16,
interval: Duration,
task: impl Fn() -> Result<R, Error>
) -> Result<R, Error>Expand description
A simplified version of retry logic used for testing. We do not need complicated retry logic as we need this only to test eventual consistency which should reach within a few seconds.