mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Mock createAikidoEndpointConfigFile in tests
This commit is contained in:
parent
5a3df40ee5
commit
38ee7e6f4f
2 changed files with 12 additions and 4 deletions
|
|
@ -99,9 +99,13 @@ async function startRama(ramaPath, dataFolder, reportingUrl) {
|
|||
dataFolder,
|
||||
"--reporting-endpoint",
|
||||
reportingUrl,
|
||||
"--config-file",
|
||||
await createAikidoEndpointConfigFile(dataFolder),
|
||||
];
|
||||
|
||||
const configFile = await createAikidoEndpointConfigFile(dataFolder);
|
||||
if (configFile) {
|
||||
args.push("--config-file", configFile);
|
||||
}
|
||||
|
||||
const stdio = getLoggingLevel() === LOGGING_VERBOSE ? "inherit" : "pipe";
|
||||
const process = spawn(ramaPath, args, { stdio: stdio });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue