From 486686dbc512d107def463768f73b10ef2ae07ef Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Thu, 22 Feb 2024 13:22:52 +0800 Subject: [PATCH] make test pass --- lighthouse/tests/exec.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lighthouse/tests/exec.rs b/lighthouse/tests/exec.rs index 61e0677ca8c..28d1fe95b88 100644 --- a/lighthouse/tests/exec.rs +++ b/lighthouse/tests/exec.rs @@ -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);