Skip to content

Commit 560c130

Browse files
Set the AGGREGATOR env var inside the unit test
1 parent 77fbb7c commit 560c130

File tree

1 file changed

+3
-0
lines changed
  • aggregation_mode/src/backend

1 file changed

+3
-0
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ mod tests {
351351

352352
#[test]
353353
fn test_should_send_proof_to_verify_on_chain() {
354+
// Set the AGGREGATOR env variable to "sp1" or "risc0" as its needed by ProofAggregator::new
355+
std::env::set_var("AGGREGATOR", "sp1");
356+
354357
// These config values are taken from config-files/config-proof-aggregator.yaml
355358
let config = Config {
356359
eth_rpc_url: "http://localhost:8545".to_string(),

0 commit comments

Comments
 (0)