这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-report",
"version": "4.10.2",
"version": "4.10.3",
"description": "Reporting tool",
"main": "worker.js",
"license": "Apache-2.0",
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