Skip to content

Commit

Permalink
make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Feb 27, 2024
1 parent baf755b commit 486686d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lighthouse/tests/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ pub trait CommandLineTestExec {
.arg(format!("--{}", "dump-chain-config"))
.arg(tmp_chain_config_path.as_os_str())
.arg("--immediate-shutdown");
if !cmd.get_args().any(|arg| arg == "--execution-endpoint") {
cmd.arg("--execution-endpoint").arg("http://localhost");
}
if !cmd.get_args().any(|arg| {
arg == "--execution-jwt"
|| arg == "--execution-jwt-secret-key"
|| arg == "--jwt-file"
|| arg == "--jwt-secrets"
}) {
// jwt-secret-key length should be 64
cmd.arg("--execution-jwt-secret-key")
.arg("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
}

// Run the command.
let output = output_result(cmd);
Expand Down

0 comments on commit 486686d

Please sign in to comment.