Skip to content

Commit

Permalink
Merge pull request #368 from ZIMkaRU/feature/add-several-retries-for-…
Browse files Browse the repository at this point in the history
…the-test-run-before-it-fails

Add several retries for the test run before it fails
  • Loading branch information
ezewer authored May 8, 2024
2 parents 76dfb32 + 6d78201 commit 5cb5ae8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
linux-test-runner:
name: Linux Test Runner
timeout-minutes: 30
timeout-minutes: 90
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -30,7 +30,14 @@ jobs:
- name: Install deps
run: npm i
- name: Run tests
run: npm test -- --reporter=json --reporter-option output=test-report.json
uses: nick-fields/retry@v3
continue-on-error: false
with:
timeout_minutes: 20
retry_wait_seconds: 10
max_attempts: 3
retry_on: any
command: npm test -- --reporter=json --reporter-option output=test-report.json
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion test/1-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('API', () => {
})

after(async function () {
this.timeout(5000)
this.timeout(20000)

try {
await mockRESTv2Srv.close()
Expand Down
4 changes: 2 additions & 2 deletions test/2-api-filter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const auth = {

describe('API filter', () => {
before(async function () {
this.timeout(5000)
this.timeout(20000)

mockRESTv2Srv = createMockRESTv2SrvWithDate(start, end, 10)

Expand All @@ -58,7 +58,7 @@ describe('API filter', () => {
})

after(async function () {
this.timeout(5000)
this.timeout(20000)

await stopEnvironment()
await rmDB(dbDirPath)
Expand Down
2 changes: 1 addition & 1 deletion test/3-report-signature.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Signature', () => {
})

after(async function () {
this.timeout(5000)
this.timeout(20000)

await stopEnvironment()
await rmDB(dbDirPath)
Expand Down

0 comments on commit 5cb5ae8

Please sign in to comment.