mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 14:21:32 +00:00
test(ci): rebalance discord webhook activity timing
This commit is contained in:
@@ -58,7 +58,7 @@ function resolveTemplateModelId(modelId: string) {
|
||||
}
|
||||
|
||||
function createTemplateModelRegistry(modelId: string): ModelRegistry {
|
||||
const registry = ModelRegistry.inMemory(AuthStorage.inMemory());
|
||||
const registry = new ModelRegistry(AuthStorage.inMemory());
|
||||
const template = getModel("openai", resolveTemplateModelId(modelId));
|
||||
registry.registerProvider("openai", {
|
||||
apiKey: "test",
|
||||
|
||||
@@ -41,7 +41,7 @@ describeLive("openrouter plugin live", () => {
|
||||
const resolved = provider.resolveDynamicModel?.({
|
||||
provider: "openrouter",
|
||||
modelId: LIVE_MODEL_ID,
|
||||
modelRegistry: ModelRegistry.inMemory(AuthStorage.inMemory()),
|
||||
modelRegistry: new ModelRegistry(AuthStorage.inMemory()),
|
||||
});
|
||||
if (!resolved) {
|
||||
throw new Error(`openrouter provider did not resolve ${LIVE_MODEL_ID}`);
|
||||
|
||||
2
test/fixtures/test-timings.channels.json
vendored
2
test/fixtures/test-timings.channels.json
vendored
@@ -301,7 +301,7 @@
|
||||
"durationMs": 282
|
||||
},
|
||||
"extensions/discord/src/send.webhook-activity.test.ts": {
|
||||
"durationMs": 31110
|
||||
"durationMs": 19380
|
||||
},
|
||||
"src/browser/routes/basic.existing-session.test.ts": {
|
||||
"durationMs": 221
|
||||
|
||||
Reference in New Issue
Block a user