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) {
|
||||
expect(failures).toEqual([]);
|
||||
expect(failures).toStrictEqual([]);
|
||||
console.warn("[live:music-generation] no provider had usable auth; skipping assertions");
|
||||
return;
|
||||
}
|
||||
expect(failures).toEqual([]);
|
||||
expect(failures).toStrictEqual([]);
|
||||
},
|
||||
10 * 60_000,
|
||||
);
|
||||
|
||||
@@ -338,7 +338,7 @@ describeLive("openai plugin live", () => {
|
||||
try {
|
||||
await session.connect();
|
||||
await new Promise((resolve) => setTimeout(resolve, 1_000));
|
||||
expect(errors).toEqual([]);
|
||||
expect(errors).toStrictEqual([]);
|
||||
expect(session.isConnected()).toBe(true);
|
||||
} finally {
|
||||
session.close();
|
||||
|
||||
@@ -336,11 +336,11 @@ function expectLiveVideoCasePassed(params: {
|
||||
}): void {
|
||||
logLiveVideoSummary(params);
|
||||
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");
|
||||
return;
|
||||
}
|
||||
expect(params.failures).toEqual([]);
|
||||
expect(params.failures).toStrictEqual([]);
|
||||
}
|
||||
|
||||
function resolveLiveSmokeDurationSeconds(params: {
|
||||
|
||||
@@ -208,7 +208,7 @@ describeLive("xai plugin live", () => {
|
||||
console.warn(`[xai:live] skip realtime-open: billing drift: ${billingError.message}`);
|
||||
return;
|
||||
}
|
||||
expect(errors).toEqual([]);
|
||||
expect(errors).toStrictEqual([]);
|
||||
expect(session.isConnected()).toBe(true);
|
||||
} finally {
|
||||
session.close();
|
||||
|
||||
@@ -9,7 +9,7 @@ describeCacheLive("live cache regression", () => {
|
||||
"matches the stored provider cache baselines",
|
||||
async () => {
|
||||
const result = await runLiveCacheRegression();
|
||||
expect(result.regressions).toEqual([]);
|
||||
expect(result.regressions).toStrictEqual([]);
|
||||
},
|
||||
30 * 60_000,
|
||||
);
|
||||
|
||||
@@ -617,6 +617,6 @@ describeLive("android node capability integration (preconditioned)", () => {
|
||||
"summary:",
|
||||
summary,
|
||||
].join("\n"),
|
||||
).toEqual([]);
|
||||
).toStrictEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -300,11 +300,11 @@ describeLive("image generation live (provider sweep)", () => {
|
||||
);
|
||||
|
||||
if (attempted.length === 0) {
|
||||
expect(failures).toEqual([]);
|
||||
expect(failures).toStrictEqual([]);
|
||||
console.warn("[live:image-generation] no provider had usable auth; skipping assertions");
|
||||
return;
|
||||
}
|
||||
expect(failures).toEqual([]);
|
||||
expect(failures).toStrictEqual([]);
|
||||
},
|
||||
15 * 60_000,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user