mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
fix(ci): stabilize media and gateway tests
This commit is contained in:
@@ -427,7 +427,9 @@ export function resolveModelFromRegistry(params: {
|
|||||||
provider: string;
|
provider: string;
|
||||||
modelId: string;
|
modelId: string;
|
||||||
}): Model<Api> {
|
}): Model<Api> {
|
||||||
const resolvedRef = normalizeModelRef(params.provider, params.modelId);
|
const resolvedRef = normalizeModelRef(params.provider, params.modelId, {
|
||||||
|
allowPluginNormalization: false,
|
||||||
|
});
|
||||||
let model = params.modelRegistry.find(
|
let model = params.modelRegistry.find(
|
||||||
resolvedRef.provider,
|
resolvedRef.provider,
|
||||||
resolvedRef.model,
|
resolvedRef.model,
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ describe("gateway server chat", () => {
|
|||||||
return await run(dir);
|
return await run(dir);
|
||||||
} finally {
|
} finally {
|
||||||
testState.sessionStorePath = undefined;
|
testState.sessionStorePath = undefined;
|
||||||
await fs.rm(dir, { recursive: true, force: true });
|
await fs.rm(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user