fix(#535): eliminate vi.mock(pdfjs-dist) birpc teardown race via libLoader injection #536
@@ -38,7 +38,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Run unit and component tests with coverage
|
- name: Run unit and component tests with coverage
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npm run test:coverage 2>&1 | tee /tmp/coverage-test.log
|
run: |
|
||||||
|
set -eo pipefail
|
||||||
|
npm run test:coverage 2>&1 | tee /tmp/coverage-test-${{ github.run_id }}.log
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
env:
|
env:
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
@@ -47,9 +49,9 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
if grep -q "rpc is closed" /tmp/coverage-test.log 2>/dev/null; then
|
if grep -q "\[birpc\] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log 2>/dev/null; then
|
||||||
echo "FAIL: [birpc] rpc is closed teardown race detected in coverage run"
|
echo "FAIL: [birpc] rpc is closed teardown race detected in coverage run"
|
||||||
grep "rpc is closed" /tmp/coverage-test.log
|
grep "\[birpc\] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user