From 042a46608f2fe13785a46a92406becc309824639 Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Tue, 17 Oct 2023 08:17:16 -0300 Subject: [PATCH] fix(test): add logic for force flag (#1421) --- javascript/packages/cli/src/actions/test.ts | 2 ++ javascript/packages/orchestrator/src/test-runner/index.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/javascript/packages/cli/src/actions/test.ts b/javascript/packages/cli/src/actions/test.ts index 4fccfe786..ebe2edb14 100644 --- a/javascript/packages/cli/src/actions/test.ts +++ b/javascript/packages/cli/src/actions/test.ts @@ -25,6 +25,7 @@ export async function test( ) { const opts = { ...program.parent.opts(), ...cmdOpts }; const dir = opts.dir || ""; + const force = opts.force || false; // By default spawn pods/process in batches of 4, // since this shouldn't be a bottleneck in most of the cases, @@ -77,6 +78,7 @@ export async function test( getLogType(opts.logType), runningNetworkSpec, dir, + force, ); } diff --git a/javascript/packages/orchestrator/src/test-runner/index.ts b/javascript/packages/orchestrator/src/test-runner/index.ts index 185d86501..0fe4952bc 100644 --- a/javascript/packages/orchestrator/src/test-runner/index.ts +++ b/javascript/packages/orchestrator/src/test-runner/index.ts @@ -38,6 +38,7 @@ export async function run( logType: LogType = "table", runningNetworkSpecPath: string | undefined, dir: string | undefined, + force: boolean = false, ) { logType && setLogType(logType); let network: Network; @@ -95,6 +96,7 @@ export async function run( inCI, logType, dir, + force, }); } else { const runningNetworkSpec: any = require(runningNetworkSpecPath);