Skip to content

Commit

Permalink
fix(test): add logic for force flag (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored Oct 17, 2023
1 parent ba02b35 commit 042a466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/packages/cli/src/actions/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -77,6 +78,7 @@ export async function test(
getLogType(opts.logType),
runningNetworkSpec,
dir,
force,
);
}

Expand Down
2 changes: 2 additions & 0 deletions javascript/packages/orchestrator/src/test-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -95,6 +96,7 @@ export async function run(
inCI,
logType,
dir,
force,
});
} else {
const runningNetworkSpec: any = require(runningNetworkSpecPath);
Expand Down

0 comments on commit 042a466

Please sign in to comment.