Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreppel committed Apr 19, 2024
1 parent dba3223 commit 9679759
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/extra_rules_and_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn main() -> eyre::Result<()> {
.route("/simple", get(my_simple_route))
.route("/count", get(query_route));

start_api(&config, ctl.clone(), router).await?;
start_api(&config, ctl.clone(), router, true).await?;

let mut sigint = signal(SignalKind::interrupt())?;
let mut sigterm = signal(SignalKind::terminate())?;
Expand Down
5 changes: 5 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ impl Config {
interactive: false,
enable_rpc: true,
admin_api_secret: None,
rate_limit_rps: 1,
}
}
}
Expand Down Expand Up @@ -192,6 +193,8 @@ mod test {
external_address: None,
interactive: false,
enable_rpc: true,
admin_api_secret: None,
rate_limit_rps: 1,
};

let names = config.premint_names();
Expand All @@ -216,6 +219,8 @@ mod test {
external_address: None,
interactive: false,
enable_rpc: true,
admin_api_secret: None,
rate_limit_rps: 1,
};

let names = config.premint_names();
Expand Down
2 changes: 2 additions & 0 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ pub mod mintpool_build {
peer_port: port,
interactive: false,
enable_rpc: true,
admin_api_secret: None,
rate_limit_rps: 1,
}
}

Expand Down
2 changes: 2 additions & 0 deletions tests/e2e_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ async fn test_zora_premint_v2_e2e() {
external_address: None,
interactive: false,
enable_rpc: true,
admin_api_secret: None,
rate_limit_rps: 1,
};

// set this so CHAINS will use the anvil rpc rather than the one in chains.json
Expand Down

0 comments on commit 9679759

Please sign in to comment.