mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-01 23:12:42 +08:00
fix(grokbuild): complete proxy and deep-link integrations (#5677)
* fix(grokbuild): complete proxy integration * fix(deeplink): preview GrokBuild configs safely * test(app): stabilize provider integration suite * fix(grokbuild): address review feedback * fix(grokbuild): resolve remaining review findings * fix(grokbuild): use native sessions and harden previews
This commit is contained in:
@@ -82,7 +82,10 @@ describe("syncModelsDevPricing", () => {
|
||||
});
|
||||
|
||||
it("skips startup network access when pricing synced within the interval", async () => {
|
||||
const lastSyncAt = Date.now() - MODELS_DEV_STARTUP_SYNC_INTERVAL_MS + 1;
|
||||
// Keep a meaningful margin inside the interval. A 1 ms margin races the
|
||||
// async mocked config lookup and makes this test depend on machine load.
|
||||
const lastSyncAt =
|
||||
Date.now() - MODELS_DEV_STARTUP_SYNC_INTERVAL_MS + 60_000;
|
||||
getModelsDevSyncConfig.mockResolvedValue({
|
||||
...state,
|
||||
config: { ...state.config, lastSyncAt },
|
||||
|
||||
Reference in New Issue
Block a user