test: tighten live array assertions

This commit is contained in:
Shakker
2026-05-09 06:06:59 +01:00
parent 024528c937
commit f8355a82f3
7 changed files with 10 additions and 10 deletions

View File

@@ -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,
); );

View File

@@ -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();

View File

@@ -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: {

View File

@@ -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();

View File

@@ -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,
); );

View File

@@ -617,6 +617,6 @@ describeLive("android node capability integration (preconditioned)", () => {
"summary:", "summary:",
summary, summary,
].join("\n"), ].join("\n"),
).toEqual([]); ).toStrictEqual([]);
}); });
}); });

View File

@@ -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,
); );