mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
Include the chain specs instead of trying to open them by path (#11625)
This makes it possible to run the tests manually, without them expecting to be run in a special folder etc.
This commit is contained in:
@@ -75,9 +75,9 @@ impl BuildStorage for Genesis {
|
||||
|
||||
#[test]
|
||||
fn beefy_protocol_name() {
|
||||
let chain_spec = GenericChainSpec::<Genesis>::from_json_file(std::path::PathBuf::from(
|
||||
"../chain-spec/res/chain_spec.json",
|
||||
))
|
||||
let chain_spec = GenericChainSpec::<Genesis>::from_json_bytes(
|
||||
&include_bytes!("../../chain-spec/res/chain_spec.json")[..],
|
||||
)
|
||||
.unwrap()
|
||||
.cloned_box();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user