Skip to content

Commit 770cd47

Browse files
authored
Refactor runTestRerun call with new parameters
1 parent 15ee2dc commit 770cd47

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands/test.rerun.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4848,9 +4848,8 @@ describe('[finding-5] batch rerun --wait: RequestTimeoutError during fan-out pol
48484848
const stdoutLines: string[] = [];
48494849
const err = await runTestRerun(
48504850
{ testIds: ['test_1', 'test_2'], all: false, wait: true, timeoutSeconds: 60, autoHeal: false, autoHealExplicit: false, skipDependencies: false },
4851-
fetchImpl,
4852-
(line) => stdoutLines.push(line)
4853-
);
4851+
{ ...creds, sleep: instantSleep, fetchImpl: fetchImpl as unknown as FetchImpl, stdout: (line) => stdoutLines.push(line), stderr: () => undefined }
4852+
).catch(e => e);
48544853

48554854
expect(err).toMatchObject({ exitCode: 7 });
48564855
const parsed = JSON.parse(stdoutLines.join('\n')) as {

0 commit comments

Comments
 (0)