test: tighten live array assertions · openclaw/openclaw@f8355a8
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -285,11 +285,11 @@ describeLive("music generation provider live", () => {
|
285 | 285 | ); |
286 | 286 | |
287 | 287 | if (attempted.length === 0) { |
288 | | -expect(failures).toEqual([]); |
| 288 | +expect(failures).toStrictEqual([]); |
289 | 289 | console.warn("[live:music-generation] no provider had usable auth; skipping assertions"); |
290 | 290 | return; |
291 | 291 | } |
292 | | -expect(failures).toEqual([]); |
| 292 | +expect(failures).toStrictEqual([]); |
293 | 293 | }, |
294 | 294 | 10 * 60_000, |
295 | 295 | ); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -338,7 +338,7 @@ describeLive("openai plugin live", () => {
|
338 | 338 | try { |
339 | 339 | await session.connect(); |
340 | 340 | await new Promise((resolve) => setTimeout(resolve, 1_000)); |
341 | | -expect(errors).toEqual([]); |
| 341 | +expect(errors).toStrictEqual([]); |
342 | 342 | expect(session.isConnected()).toBe(true); |
343 | 343 | } finally { |
344 | 344 | session.close(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -336,11 +336,11 @@ function expectLiveVideoCasePassed(params: {
|
336 | 336 | }): void { |
337 | 337 | logLiveVideoSummary(params); |
338 | 338 | if (params.attempted.length === 0) { |
339 | | -expect(params.failures).toEqual([]); |
| 339 | +expect(params.failures).toStrictEqual([]); |
340 | 340 | console.warn("[live:video-generation] no live video attempt completed; skipping assertions"); |
341 | 341 | return; |
342 | 342 | } |
343 | | -expect(params.failures).toEqual([]); |
| 343 | +expect(params.failures).toStrictEqual([]); |
344 | 344 | } |
345 | 345 | |
346 | 346 | function resolveLiveSmokeDurationSeconds(params: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -208,7 +208,7 @@ describeLive("xai plugin live", () => {
|
208 | 208 | console.warn(`[xai:live] skip realtime-open: billing drift: ${billingError.message}`); |
209 | 209 | return; |
210 | 210 | } |
211 | | -expect(errors).toEqual([]); |
| 211 | +expect(errors).toStrictEqual([]); |
212 | 212 | expect(session.isConnected()).toBe(true); |
213 | 213 | } finally { |
214 | 214 | session.close(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ describeCacheLive("live cache regression", () => {
|
9 | 9 | "matches the stored provider cache baselines", |
10 | 10 | async () => { |
11 | 11 | const result = await runLiveCacheRegression(); |
12 | | -expect(result.regressions).toEqual([]); |
| 12 | +expect(result.regressions).toStrictEqual([]); |
13 | 13 | }, |
14 | 14 | 30 * 60_000, |
15 | 15 | ); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -617,6 +617,6 @@ describeLive("android node capability integration (preconditioned)", () => {
|
617 | 617 | "summary:", |
618 | 618 | summary, |
619 | 619 | ].join("\n"), |
620 | | -).toEqual([]); |
| 620 | +).toStrictEqual([]); |
621 | 621 | }); |
622 | 622 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -300,11 +300,11 @@ describeLive("image generation live (provider sweep)", () => {
|
300 | 300 | ); |
301 | 301 | |
302 | 302 | if (attempted.length === 0) { |
303 | | -expect(failures).toEqual([]); |
| 303 | +expect(failures).toStrictEqual([]); |
304 | 304 | console.warn("[live:image-generation] no provider had usable auth; skipping assertions"); |
305 | 305 | return; |
306 | 306 | } |
307 | | -expect(failures).toEqual([]); |
| 307 | +expect(failures).toStrictEqual([]); |
308 | 308 | }, |
309 | 309 | 15 * 60_000, |
310 | 310 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。