mirror of https://github.com/openclaw/openclaw.git
test(ci): rebalance discord webhook activity timing
This commit is contained in:
parent
7cd0ff2d88
commit
3ec143254f
|
|
@ -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}`);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue