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:
Bastian Köcher
2022-06-14 23:22:16 +02:00
committed by GitHub
parent bed163dceb
commit c013f0d6c1
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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();