diff --git a/crates/op-rbuilder/src/integration/mod.rs b/crates/op-rbuilder/src/integration/mod.rs index 11cd6d75c..14ce32704 100644 --- a/crates/op-rbuilder/src/integration/mod.rs +++ b/crates/op-rbuilder/src/integration/mod.rs @@ -240,10 +240,12 @@ impl TestHarnessBuilder { pub async fn build(self) -> eyre::Result { let mut framework = IntegrationFramework::new(&self.name).unwrap(); - // we are going to use a genesis file pre-generated before the test - let mut genesis_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - genesis_path.push("../../genesis.json"); - assert!(genesis_path.exists()); + // we are going to use the fixture genesis and copy it to each test folder + let genesis = include_str!("../tester/fixtures/genesis.json.tmpl"); + + let mut genesis_path = framework.test_dir.clone(); + genesis_path.push("genesis.json"); + std::fs::write(&genesis_path, genesis)?; // create the builder let builder_data_dir = std::env::temp_dir().join(Uuid::new_v4().to_string());