Skip to content

Commit 7316cb7

Browse files
Use a path relative to the crate to make the CI pass
1 parent 560c130 commit 7316cb7

File tree

1 file changed

+9
-4
lines changed
  • aggregation_mode/src/backend

1 file changed

+9
-4
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ mod tests {
354354
// Set the AGGREGATOR env variable to "sp1" or "risc0" as its needed by ProofAggregator::new
355355
std::env::set_var("AGGREGATOR", "sp1");
356356

357+
let current_dir = env!("CARGO_MANIFEST_DIR");
358+
357359
// These config values are taken from config-files/config-proof-aggregator.yaml
358360
let config = Config {
359361
eth_rpc_url: "http://localhost:8545".to_string(),
@@ -363,11 +365,14 @@ mod tests {
363365
.to_string(),
364366
aligned_service_manager_address: "0x851356ae760d987E095750cCeb3bC6014560891C"
365367
.to_string(),
366-
last_aggregated_block_filepath:
367-
"/Users/maximopalopoli/Desktop/aligned/repo/aligned_layer/config-files/proof-aggregator.last_aggregated_block.json".to_string(),
368+
// Use a path relative to the crate so tests work both locally and in CI
369+
last_aggregated_block_filepath: format!(
370+
"{current_dir}/../config-files/proof-aggregator.last_aggregated_block.json"
371+
),
368372
ecdsa: config::ECDSAConfig {
369-
private_key_store_path: "/Users/maximopalopoli/Desktop/aligned/repo/aligned_layer/config-files/anvil.proof-aggregator.ecdsa.key.json"
370-
.to_string(),
373+
private_key_store_path: format!(
374+
"{current_dir}/../config-files/anvil.proof-aggregator.ecdsa.key.json"
375+
),
371376
private_key_store_password: "".to_string(),
372377
},
373378
proofs_per_chunk: 512,

0 commit comments

Comments
 (0)