mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
[FRAME] Test for sane genesis default (#3412)
Closes https://github.com/paritytech/polkadot-sdk/issues/2713 --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cd91c6b782
commit
e76b244853
@@ -1237,15 +1237,7 @@ mod tests {
|
||||
"TestName",
|
||||
"test",
|
||||
ChainType::Local,
|
||||
move || substrate_test_runtime::RuntimeGenesisConfig {
|
||||
babe: substrate_test_runtime::BabeConfig {
|
||||
epoch_config: Some(
|
||||
substrate_test_runtime::TEST_RUNTIME_BABE_EPOCH_CONFIGURATION,
|
||||
),
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
},
|
||||
|| Default::default(),
|
||||
Vec::new(),
|
||||
None,
|
||||
None,
|
||||
|
||||
@@ -149,7 +149,7 @@ mod tests {
|
||||
<GenesisConfigBuilderRuntimeCaller>::new(substrate_test_runtime::wasm_binary_unwrap())
|
||||
.get_default_config()
|
||||
.unwrap();
|
||||
let expected = r#"{"system":{},"babe":{"authorities":[],"epochConfig":null},"substrateTest":{"authorities":[]},"balances":{"balances":[]}}"#;
|
||||
let expected = r#"{"babe": {"authorities": [], "epochConfig": {"allowed_slots": "PrimaryAndSecondaryVRFSlots", "c": [1, 4]}}, "balances": {"balances": []}, "substrateTest": {"authorities": []}, "system": {}}"#;
|
||||
assert_eq!(from_str::<Value>(expected).unwrap(), config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user