mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-05-05 13:40:44 +08:00
sync: bring over remaining release/custom-0.1.115 changes
- Extract PublicSettingsInjectionPayload named struct with drift test - Add channel_monitor_default_interval_seconds to SSR injection - Add image_output_price to SupportedModelChip - Simplify AppSidebar buildSelfNavItems (admins see available channels) - Add gateway WARN logs for 503 no-available-accounts branches - Wire ChannelMonitorRunner into provideCleanup for graceful shutdown - Add migrations 130/131 (CC template userid fix + mimicry field cleanup) - Clean up fork-only features (sora, claude max simulation, client affinity) - Remove ~320 obsolete i18n keys - Add codexUsage utility, WechatServiceButton, BulkEditAccountModal - Tidy go.sum
This commit is contained in:
@@ -145,6 +145,25 @@ describe('usageLoadQueue', () => {
|
||||
expect(Math.abs(timestamps[1] - timestamps[0])).toBeLessThan(50)
|
||||
})
|
||||
|
||||
it('Antigravity 平台直接执行,不排队', async () => {
|
||||
const timestamps: number[] = []
|
||||
const makeFn = () => async () => {
|
||||
timestamps.push(Date.now())
|
||||
return 'ok'
|
||||
}
|
||||
|
||||
const acc1 = makeAccount('antigravity', 'oauth', { host: '1.2.3.4', port: 8080 })
|
||||
const acc2 = makeAccount('antigravity', 'oauth', { host: '1.2.3.4', port: 8080 })
|
||||
|
||||
const p1 = enqueueUsageRequest(acc1, makeFn())
|
||||
const p2 = enqueueUsageRequest(acc2, makeFn())
|
||||
|
||||
await Promise.all([p1, p2])
|
||||
|
||||
expect(timestamps).toHaveLength(2)
|
||||
expect(Math.abs(timestamps[1] - timestamps[0])).toBeLessThan(50)
|
||||
})
|
||||
|
||||
it('OpenAI 平台直接执行,不排队', async () => {
|
||||
const timestamps: number[] = []
|
||||
const makeFn = () => async () => {
|
||||
|
||||
Reference in New Issue
Block a user