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 26, 2024
1 parent baf755b commit a78692d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lighthouse/tests/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ 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")
{
// 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 a78692d

Please sign in to comment.