From 531da1858f3d41324a008be090532a34368d2628 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Wed, 2 Oct 2019 08:18:38 -0400 Subject: [PATCH] fix test timeout (#176) * fix test timeout --- .github/workflows/workflow.yml | 2 +- README.md | 2 +- packages/exec/__tests__/exec.test.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4d05ed64..e13e5676 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,4 +1,4 @@ -name: Main workflow +name: toolkit-unit-tests on: [push] jobs: Ubuntu: diff --git a/README.md b/README.md index 3fd0d5a9..ddd07b36 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

- GitHub Actions status + GitHub Actions status

## GitHub Actions Toolkit diff --git a/packages/exec/__tests__/exec.test.ts b/packages/exec/__tests__/exec.test.ts index 680d1821..e0b69641 100644 --- a/packages/exec/__tests__/exec.test.ts +++ b/packages/exec/__tests__/exec.test.ts @@ -255,6 +255,8 @@ describe('@actions/exec', () => { }) it('Handles child process holding streams open', async function() { + // this was timing out on some slower hosted macOS runs at default 5s + jest.setTimeout(10000) const semaphorePath = path.join( getTestTemp(), 'child-process-semaphore.txt' @@ -301,6 +303,8 @@ describe('@actions/exec', () => { }) it('Handles child process holding streams open and non-zero exit code', async function() { + // this was timing out on some slower hosted macOS runs at default 5s + jest.setTimeout(10000) const semaphorePath = path.join( getTestTemp(), 'child-process-semaphore.txt'