test: extend Z.AI live test timeout

This commit is contained in:
Peter Steinberger
2025-12-31 12:43:34 +01:00
parent 21237dae98
commit 12084fc4f9

View File

@@ -7,7 +7,9 @@ const LIVE = process.env.ZAI_LIVE_TEST === "1" || process.env.LIVE === "1";
const describeLive = LIVE && ZAI_KEY ? describe : describe.skip;
describeLive("zai live", () => {
it("returns assistant text", async () => {
it(
"returns assistant text",
async () => {
const model = getModel("zai", "glm-4.7");
const res = await completeSimple(
model,
@@ -27,5 +29,7 @@ describeLive("zai live", () => {
.map((block) => block.text.trim())
.join(" ");
expect(text.length).toBeGreaterThan(0);
});
},
20000,
);
});