/// Waits for the migration associated with provides request will result
/// in a failure. Panics otherwise.
Waits for the migration associated with provides request will result
in a failure. Panics otherwise.
Waits for the migration associated with provides request will result in a failure . Panics otherwise .
fn wait_for_migration_fail(
    testkit: &mut TestKit,
    deadline_height: Height,
    request: MigrationRequest,
) -> ExecutionError {
    let state = wait_while_pending(testkit, deadline_height, request);
    if let AsyncEventState::Failed { error, .. } = state.inner {
        error
    } else {
        panic!("Migration not failed, but was expected to: {:?}", state);
    }
}
fn wait_for_migration_fail ( testkit : & mut TestKit , deadline_height : Height , request : MigrationRequest , ) -> ExecutionError { let state = wait_while_pending ( testkit , deadline_height , request ) ; if let AsyncEventState :: Failed { error , .. } = state . inner { error } else { panic ! ( " " state ) ; } }
Waits for the migration associated with provides request will result
in a failure.
Waits for the migration associated with provides request will result in a failure .
testkit
&mut TestKit
deadline_height
Height
request
MigrationRequest