mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * format format file Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Format with new config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add Substrate Clippy config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Print Clippy version in CI Otherwise its difficult to reproduce locally. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make fmt happy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
committed by
GitHub
parent
ac435c96cf
commit
342d720573
@@ -649,7 +649,8 @@ fn submit_code_change_when_not_allowed_is_err() {
|
||||
Paras::schedule_code_upgrade(para_id, newer_code.clone(), 2, &Configuration::config());
|
||||
assert_eq!(
|
||||
FutureCodeUpgrades::<Test>::get(¶_id),
|
||||
Some(1 + validation_upgrade_delay), // did not change since the same assertion from the last time.
|
||||
Some(1 + validation_upgrade_delay), /* did not change since the same assertion from
|
||||
* the last time. */
|
||||
);
|
||||
assert_eq!(FutureCodeHash::<Test>::get(¶_id), Some(new_code.hash()));
|
||||
check_code_is_not_stored(&newer_code);
|
||||
@@ -1554,8 +1555,9 @@ fn increase_code_ref_doesnt_have_allergy_on_add_trusted_validation_code() {
|
||||
|
||||
#[test]
|
||||
fn add_trusted_validation_code_insta_approval() {
|
||||
// In particular, this tests that `kick_off_pvf_check` reacts to the `add_trusted_validation_code`
|
||||
// and uses the `CodeByHash::contains_key` which is what `add_trusted_validation_code` uses.
|
||||
// In particular, this tests that `kick_off_pvf_check` reacts to the
|
||||
// `add_trusted_validation_code` and uses the `CodeByHash::contains_key` which is what
|
||||
// `add_trusted_validation_code` uses.
|
||||
let para_id = 100.into();
|
||||
let validation_code = ValidationCode(vec![1, 2, 3]);
|
||||
let validation_upgrade_delay = 25;
|
||||
|
||||
Reference in New Issue
Block a user