mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten live array assertions
This commit is contained in:
@@ -285,11 +285,11 @@ describeLive("music generation provider live", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (attempted.length === 0) {
|
if (attempted.length === 0) {
|
||||||
expect(failures).toEqual([]);
|
expect(failures).toStrictEqual([]);
|
||||||
console.warn("[live:music-generation] no provider had usable auth; skipping assertions");
|
console.warn("[live:music-generation] no provider had usable auth; skipping assertions");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expect(failures).toEqual([]);
|
expect(failures).toStrictEqual([]);
|
||||||
},
|
},
|
||||||
10 * 60_000,
|
10 * 60_000,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ describeLive("openai plugin live", () => {
|
|||||||
try {
|
try {
|
||||||
await session.connect();
|
await session.connect();
|
||||||
await new Promise((resolve) => setTimeout(resolve, 1_000));
|
await new Promise((resolve) => setTimeout(resolve, 1_000));
|
||||||
expect(errors).toEqual([]);
|
expect(errors).toStrictEqual([]);
|
||||||
expect(session.isConnected()).toBe(true);
|
expect(session.isConnected()).toBe(true);
|
||||||
} finally {
|
} finally {
|
||||||
session.close();
|
session.close();
|
||||||
|
|||||||
@@ -336,11 +336,11 @@ function expectLiveVideoCasePassed(params: {
|
|||||||
}): void {
|
}): void {
|
||||||
logLiveVideoSummary(params);
|
logLiveVideoSummary(params);
|
||||||
if (params.attempted.length === 0) {
|
if (params.attempted.length === 0) {
|
||||||
expect(params.failures).toEqual([]);
|
expect(params.failures).toStrictEqual([]);
|
||||||
console.warn("[live:video-generation] no live video attempt completed; skipping assertions");
|
console.warn("[live:video-generation] no live video attempt completed; skipping assertions");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expect(params.failures).toEqual([]);
|
expect(params.failures).toStrictEqual([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveLiveSmokeDurationSeconds(params: {
|
function resolveLiveSmokeDurationSeconds(params: {
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ describeLive("xai plugin live", () => {
|
|||||||
console.warn(`[xai:live] skip realtime-open: billing drift: ${billingError.message}`);
|
console.warn(`[xai:live] skip realtime-open: billing drift: ${billingError.message}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expect(errors).toEqual([]);
|
expect(errors).toStrictEqual([]);
|
||||||
expect(session.isConnected()).toBe(true);
|
expect(session.isConnected()).toBe(true);
|
||||||
} finally {
|
} finally {
|
||||||
session.close();
|
session.close();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ describeCacheLive("live cache regression", () => {
|
|||||||
"matches the stored provider cache baselines",
|
"matches the stored provider cache baselines",
|
||||||
async () => {
|
async () => {
|
||||||
const result = await runLiveCacheRegression();
|
const result = await runLiveCacheRegression();
|
||||||
expect(result.regressions).toEqual([]);
|
expect(result.regressions).toStrictEqual([]);
|
||||||
},
|
},
|
||||||
30 * 60_000,
|
30 * 60_000,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -617,6 +617,6 @@ describeLive("android node capability integration (preconditioned)", () => {
|
|||||||
"summary:",
|
"summary:",
|
||||||
summary,
|
summary,
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
).toEqual([]);
|
).toStrictEqual([]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -300,11 +300,11 @@ describeLive("image generation live (provider sweep)", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (attempted.length === 0) {
|
if (attempted.length === 0) {
|
||||||
expect(failures).toEqual([]);
|
expect(failures).toStrictEqual([]);
|
||||||
console.warn("[live:image-generation] no provider had usable auth; skipping assertions");
|
console.warn("[live:image-generation] no provider had usable auth; skipping assertions");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expect(failures).toEqual([]);
|
expect(failures).toStrictEqual([]);
|
||||||
},
|
},
|
||||||
15 * 60_000,
|
15 * 60_000,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user