Skip to content

Commit

Permalink
test: Fix flaky task-runner integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Oct 18, 2024
1 parent 0be04c6 commit dec2c57
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ describe('TaskRunnerProcess', () => {
runnerProcess.process?.kill('SIGKILL');

// Assert
// Wait until the runner is running again
await retryUntil(() => expect(runnerProcess.isRunning).toBeTruthy());
expect(runnerProcess.pid).not.toBe(processId);
// Wait until the runner has died
await retryUntil(() => expect(runnerProcess.pid).not.toBe(processId));

// Wait until the runner has connected again
await retryUntil(() => expect(getNumConnectedRunners()).toBe(1));
expect(getNumConnectedRunners()).toBe(1);
expect(getNumRegisteredRunners()).toBe(1);
expect(runnerProcess.pid).not.toBe(processId);
});

it('should launch runner directly if not using a launcher', async () => {
Expand Down

0 comments on commit dec2c57

Please sign in to comment.