mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 09:11:02 +00:00
Convert all UK spelling to US (#2138)
* all the ise * forgot a misspelling * a few more replacements * bump impl * rollback and fixes * bump impl again * Add aliases for RPC * Update on_demand.rs
This commit is contained in:
@@ -157,7 +157,7 @@ fn should_return_block_hash() {
|
||||
|
||||
|
||||
#[test]
|
||||
fn should_return_finalised_hash() {
|
||||
fn should_return_finalized_hash() {
|
||||
let core = ::tokio::runtime::Runtime::new().unwrap();
|
||||
let remote = core.executor();
|
||||
|
||||
@@ -167,23 +167,23 @@ fn should_return_finalised_hash() {
|
||||
};
|
||||
|
||||
assert_matches!(
|
||||
client.finalised_head(),
|
||||
client.finalized_head(),
|
||||
Ok(ref x) if x == &client.client.genesis_hash()
|
||||
);
|
||||
|
||||
// import new block
|
||||
let builder = client.client.new_block().unwrap();
|
||||
client.client.import(BlockOrigin::Own, builder.bake().unwrap()).unwrap();
|
||||
// no finalisation yet
|
||||
// no finalization yet
|
||||
assert_matches!(
|
||||
client.finalised_head(),
|
||||
client.finalized_head(),
|
||||
Ok(ref x) if x == &client.client.genesis_hash()
|
||||
);
|
||||
|
||||
// finalise
|
||||
// finalize
|
||||
client.client.finalize_block(BlockId::number(1), None, true).unwrap();
|
||||
assert_matches!(
|
||||
client.finalised_head(),
|
||||
client.finalized_head(),
|
||||
Ok(ref x) if x == &client.client.block_hash(1).unwrap().unwrap()
|
||||
);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ fn should_notify_about_latest_block() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_notify_about_finalised_block() {
|
||||
fn should_notify_about_finalized_block() {
|
||||
let mut core = ::tokio::runtime::Runtime::new().unwrap();
|
||||
let remote = core.executor();
|
||||
let (subscriber, id, transport) = Subscriber::new_test("test");
|
||||
@@ -231,7 +231,7 @@ fn should_notify_about_finalised_block() {
|
||||
subscriptions: Subscriptions::new(remote),
|
||||
};
|
||||
|
||||
api.subscribe_finalised_heads(Default::default(), subscriber);
|
||||
api.subscribe_finalized_heads(Default::default(), subscriber);
|
||||
|
||||
// assert id assigned
|
||||
assert_eq!(core.block_on(id), Ok(Ok(SubscriptionId::Number(1))));
|
||||
|
||||
Reference in New Issue
Block a user