mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-21 15:05:56 +00:00
test(images): import the combos module before the first Leonardo edit test
check:test-tla-order rejected the top-level await placed between test() calls: under --test-force-exit the later tests can silently never run (#18045). Move the combos.ts import up with the other top-level imports.
This commit is contained in:
committed by
diegosouzapw
parent
5dbfad9be4
commit
9aa9b27457
@@ -19,6 +19,7 @@ process.env.API_KEY_SECRET = process.env.API_KEY_SECRET || "leonardo-edits-test-
|
||||
const core = await import("../../src/lib/db/core.ts");
|
||||
const providersDb = await import("../../src/lib/db/providers.ts");
|
||||
const apiKeysDb = await import("../../src/lib/db/apiKeys.ts");
|
||||
const combosDb = await import("../../src/lib/db/combos.ts");
|
||||
const imageEditRoute = await import("../../src/app/api/v1/images/edits/route.ts");
|
||||
const { handleLeonardoImageGeneration } =
|
||||
await import("../../open-sse/handlers/imageGeneration/providers/leonardo.ts");
|
||||
@@ -212,8 +213,6 @@ test("POST /v1/images/edits routes a leonardo model to the Leonardo edit instead
|
||||
|
||||
// A combo target takes one reference too: the single-model route answers 400 for two, and a
|
||||
// combo must not upload only the first and silently drop the rest.
|
||||
const combosDb = await import("../../src/lib/db/combos.ts");
|
||||
|
||||
function comboEdit(model: string) {
|
||||
return imageEditRoute.POST(
|
||||
new Request("http://localhost/api/v1/images/edits", {
|
||||
|
||||
Reference in New Issue
Block a user