修复ci导致的问题

This commit is contained in:
YHH
2025-07-18 15:15:37 +08:00
parent 19cda88248
commit af61067f08
2 changed files with 3 additions and 8 deletions

View File

@@ -10,18 +10,14 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }} - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: '20.x'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
@@ -31,7 +27,6 @@ jobs:
run: npm run test:ci run: npm run test:ci
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: matrix.node-version == '20.x'
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v4
with: with:
file: ./coverage/lcov.info file: ./coverage/lcov.info

View File

@@ -209,7 +209,7 @@ describe('IdentifierPool 世代式ID池测试', () => {
expect(() => { expect(() => {
pool.checkOut(); pool.checkOut();
}).toThrow('实体索引已达到硬件限制'); }).toThrow('实体索引已达到框架设计限制');
}); });
test('应该能处理边界值', () => { test('应该能处理边界值', () => {