Skip to content

Commit

Permalink
fix test timeout (actions#176)
Browse files Browse the repository at this point in the history
* fix test timeout
  • Loading branch information
bryanmacfarlane authored Oct 2, 2019
1 parent 9d54cd2 commit 531da18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main workflow
name: toolkit-unit-tests
on: [push]
jobs:
Ubuntu:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</p>

<p align="center">
<a href="https://github.com/actions/toolkit"><img alt="GitHub Actions status" src="https://github.com/actions/toolkit/workflows/Main%20workflow/badge.svg"></a>
<a href="https://github.com/actions/toolkit"><img alt="GitHub Actions status" src="https://github.com/actions/toolkit/workflows/toolkit-unit-tests/badge.svg"></a>
</p>

## GitHub Actions Toolkit
Expand Down
4 changes: 4 additions & 0 deletions packages/exec/__tests__/exec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 531da18

Please sign in to comment.