test: extend Z.AI live test timeout
This commit is contained in:
@@ -7,7 +7,9 @@ const LIVE = process.env.ZAI_LIVE_TEST === "1" || process.env.LIVE === "1";
|
|||||||
const describeLive = LIVE && ZAI_KEY ? describe : describe.skip;
|
const describeLive = LIVE && ZAI_KEY ? describe : describe.skip;
|
||||||
|
|
||||||
describeLive("zai live", () => {
|
describeLive("zai live", () => {
|
||||||
it("returns assistant text", async () => {
|
it(
|
||||||
|
"returns assistant text",
|
||||||
|
async () => {
|
||||||
const model = getModel("zai", "glm-4.7");
|
const model = getModel("zai", "glm-4.7");
|
||||||
const res = await completeSimple(
|
const res = await completeSimple(
|
||||||
model,
|
model,
|
||||||
@@ -27,5 +29,7 @@ describeLive("zai live", () => {
|
|||||||
.map((block) => block.text.trim())
|
.map((block) => block.text.trim())
|
||||||
.join(" ");
|
.join(" ");
|
||||||
expect(text.length).toBeGreaterThan(0);
|
expect(text.length).toBeGreaterThan(0);
|
||||||
});
|
},
|
||||||
|
20000,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user