Skip to content

Commit 98f9393

Browse files
authored
Refactor test parameters for runTestRerun function
1 parent 5e2bf88 commit 98f9393

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

src/commands/test.rerun.spec.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4847,8 +4847,26 @@ describe('[finding-5] batch rerun --wait: RequestTimeoutError during fan-out pol
48474847

48484848
const stdoutLines: string[] = [];
48494849
const err = await runTestRerun(
4850-
{ testIds: ['test_1', 'test_2'], all: false, wait: true, timeoutSeconds: 60, autoHeal: false, autoHealExplicit: false, skipDependencies: false maxConcurrency: 1, profile: 'default', output: 'json'},
4851-
{ ...creds, sleep: instantSleep, fetchImpl: fetchImpl as unknown as FetchImpl, stdout: (line) => stdoutLines.push(line), stderr: () => undefined }
4850+
{
4851+
testIds: ['test_1', 'test_2'],
4852+
all: false,
4853+
wait: true,
4854+
timeoutSeconds: 60,
4855+
autoHeal: false,
4856+
autoHealExplicit: false,
4857+
skipDependencies: false,
4858+
maxConcurrency: 1,
4859+
profile: 'default',
4860+
output: 'json',
4861+
debug: false,
4862+
},
4863+
{
4864+
...creds,
4865+
sleep: instantSleep,
4866+
fetchImpl: fetchImpl as unknown as FetchImpl,
4867+
stdout: (line) => stdoutLines.push(line),
4868+
stderr: () => undefined,
4869+
},
48524870
).catch(e => e);
48534871

48544872
expect(err).toMatchObject({ exitCode: 7 });

0 commit comments

Comments
 (0)