Skip to content

Commit d1603ef

Browse files
committed
fix(ci): test:e2e
1 parent 9fa27d2 commit d1603ef

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
- name: Build
107107
run: npm run build
108108

109+
- name: Stop any ipfs daemon before tests
110+
run: ipfs shutdown || true
111+
shell: bash
112+
109113
- name: Test
110114
run: npm run test
111115

test/e2e/launch.e2e.test.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ test.describe.serial('Application launch', async () => {
1616

1717
test.afterEach(async () => {
1818
if (app) {
19-
await app.close()
19+
try {
20+
await app.close()
21+
} catch (e) {
22+
if (e.message.includes('has been closed')) return
23+
throw e
24+
}
2025
}
2126
})
2227

0 commit comments

Comments
 (0)