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

View File

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