mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-19 04:15:45 +00:00
fix: restore parallel-safe validate pipeline
This commit is contained in:
1 parent
0d90f04f3e
commit
04fd8ff019
11 files changed
+176
-306
No files matched your search
@@ -2,8 +2,10 @@ import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import * as path from 'path';
|
||||
import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test';
|
||||
import { clearQuotaCache } from '../../../src/cliproxy/quota-response-cache';
|
||||
|
||||
afterEach(() => {
|
||||
clearQuotaCache();
|
||||
mock.restore();
|
||||
});
|
||||
|
||||
@@ -57,10 +59,6 @@ describe('codex plan compatibility reconcile', () => {
|
||||
accountId: 'free@example.com',
|
||||
}),
|
||||
}));
|
||||
mock.module('../../../src/cliproxy/quota-response-cache', () => ({
|
||||
getCachedQuota: () => null,
|
||||
setCachedQuota: () => {},
|
||||
}));
|
||||
mock.module('../../../src/utils/ui', () => ({
|
||||
info: (message: string) => message,
|
||||
warn: (message: string) => message,
|
||||
@@ -103,10 +101,6 @@ describe('codex plan compatibility reconcile', () => {
|
||||
throw new Error('should not fetch quota without a default account');
|
||||
},
|
||||
}));
|
||||
mock.module('../../../src/cliproxy/quota-response-cache', () => ({
|
||||
getCachedQuota: () => null,
|
||||
setCachedQuota: () => {},
|
||||
}));
|
||||
mock.module('../../../src/utils/ui', () => ({
|
||||
info: (message: string) => message,
|
||||
warn: (message: string) => message,
|
||||
@@ -153,10 +147,6 @@ describe('codex plan compatibility reconcile', () => {
|
||||
accountId: `${planType}@example.com`,
|
||||
}),
|
||||
}));
|
||||
mock.module('../../../src/cliproxy/quota-response-cache', () => ({
|
||||
getCachedQuota: () => null,
|
||||
setCachedQuota: () => {},
|
||||
}));
|
||||
mock.module('../../../src/utils/ui', () => ({
|
||||
info: (message: string) => message,
|
||||
warn: (message: string) => message,
|
||||
@@ -202,10 +192,6 @@ describe('codex plan compatibility reconcile', () => {
|
||||
error: 'network timeout',
|
||||
}),
|
||||
}));
|
||||
mock.module('../../../src/cliproxy/quota-response-cache', () => ({
|
||||
getCachedQuota: () => null,
|
||||
setCachedQuota: () => {},
|
||||
}));
|
||||
mock.module('../../../src/utils/ui', () => ({
|
||||
info: (message: string) => message,
|
||||
warn: (message: string) => message,
|
||||
@@ -250,10 +236,6 @@ describe('codex plan compatibility reconcile', () => {
|
||||
accountId: 'missing-plan@example.com',
|
||||
}),
|
||||
}));
|
||||
mock.module('../../../src/cliproxy/quota-response-cache', () => ({
|
||||
getCachedQuota: () => null,
|
||||
setCachedQuota: () => {},
|
||||
}));
|
||||
mock.module('../../../src/utils/ui', () => ({
|
||||
info: (message: string) => message,
|
||||
warn: (message: string) => message,
|
||||
|
||||
Reference in new issue
Block a user