fn wait_for_migration_success(
    testkit: &mut TestKit,
    deadline_height: Height,
    request: MigrationRequest,
    version: Version,
) {
    let state = wait_while_pending(testkit, deadline_height, request);
    if let AsyncEventState::Succeed = state.inner {
        assert_eq!(state.version, version);
    } else {
        panic!("Migration failed: {:?}", state);
    }
}
/// Waits for the migration associated with provides request will result
/// in a success. Panics otherwise.
Waits for the migration associated with provides request will result
in a success. Panics otherwise.
Waits for the migration associated with provides request will result in a success . Panics otherwise .
fn wait_for_migration_success(
    testkit: &mut TestKit,
    deadline_height: Height,
    request: MigrationRequest,
    version: Version,
) {
    let state = wait_while_pending(testkit, deadline_height, request);
    if let AsyncEventState::Succeed = state.inner {
        assert_eq!(state.version, version);
    } else {
        panic!("Migration failed: {:?}", state);
    }
}
fn wait_for_migration_success ( testkit : & mut TestKit , deadline_height : Height , request : MigrationRequest , version : Version , ) { let state = wait_while_pending ( testkit , deadline_height , request ) ; if let AsyncEventState :: Succeed = state . inner { assert_eq ! ( state version version ) ; } else { panic ! ( " " state ) ; } }
Waits for the migration associated with provides request will result
in a success.
Waits for the migration associated with provides request will result in a success .
testkit
&mut TestKit
deadline_height
Height
request
MigrationRequest
version
Version
testkit
&mut TestKit
deadline_height
Height
request
MigrationRequest
version
Version