test: clarify core resilience test names · openclaw/openclaw@7c8857b
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,12 +58,11 @@ describe("inter-session lastRoute preservation (fixes #54441)", () => {
|
58 | 58 | sessionKey: "agent:samantha:main", |
59 | 59 | isInterSession: true, |
60 | 60 | }); |
61 | | -// No external route existed — falls through to normal resolution (webchat or undefined) |
62 | | -// The important thing is it does NOT throw and returns a defined or undefined value. |
| 61 | +// No external route existed — falls through to normal resolution (webchat or undefined). |
63 | 62 | expect(result === "webchat" || result === undefined).toBe(true); |
64 | 63 | }); |
65 | 64 | |
66 | | -it("inter-session on session with no persisted lastTo does not crash", () => { |
| 65 | +it("inter-session on session with no persisted lastTo preserves session route", () => { |
67 | 66 | const result = resolveLastToRaw({ |
68 | 67 | originatingChannelRaw: "webchat", |
69 | 68 | originatingToRaw: "session:somekey", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -340,7 +340,7 @@ describe("runConfigureWizard", () => {
|
340 | 340 | expect(mocks.setupSearch).toHaveBeenCalledOnce(); |
341 | 341 | }); |
342 | 342 | |
343 | | -it("does not crash when web search providers are unavailable under plugin policy", async () => { |
| 343 | +it("notes unavailable web search providers under plugin policy", async () => { |
344 | 344 | setupBaseWizardState(); |
345 | 345 | mocks.resolveSearchProviderOptions.mockReturnValue([]); |
346 | 346 | queueWizardPrompts({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -691,7 +691,7 @@ describe("models list/status", () => {
|
691 | 691 | ]); |
692 | 692 | }); |
693 | 693 | |
694 | | -it("toModelRow does not crash without cfg/authStore when availability is undefined", () => { |
| 694 | +it("toModelRow marks unavailable when cfg/authStore and availability are undefined", () => { |
695 | 695 | const row = toModelRow({ |
696 | 696 | model: makeGoogleAntigravityTemplate( |
697 | 697 | "claude-opus-4-6-thinking", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ const opsRegressionFixtures = setupCronRegressionFixtures({
|
27 | 27 | }); |
28 | 28 | |
29 | 29 | describe("cron service ops regressions", () => { |
30 | | -it("does not crash startup when a loaded job is missing state", async () => { |
| 30 | +it("repairs missing job state during startup", async () => { |
31 | 31 | const scheduledAt = Date.now() + 60_000; |
32 | 32 | const store = opsRegressionFixtures.makeStorePath(); |
33 | 33 | const state = createCronServiceState({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -148,13 +148,12 @@ describe("drainPendingDeliveries for reconnect", () => {
|
148 | 148 | expect(after.lastError).toBe("transient failure"); |
149 | 149 | }); |
150 | 150 | |
151 | | -it("does not throw if delivery fails during drain", async () => { |
| 151 | +it("records retry state if delivery fails during drain", async () => { |
152 | 152 | const log = createRecoveryLog(); |
153 | 153 | const deliver = createTransientFailureDeliver(); |
154 | 154 | |
155 | 155 | await enqueueFailedDirectChatDelivery({ accountId: "acct1", stateDir: tmpDir }); |
156 | 156 | |
157 | | -// Should not throw |
158 | 157 | await expect( |
159 | 158 | drainAcct1DirectChatReconnect({ deliver, log, stateDir: tmpDir }), |
160 | 159 | ).resolves.toBeUndefined(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,7 +89,7 @@ function requireWarning(warnings: string[], text: string): string {
|
89 | 89 | } |
90 | 90 | |
91 | 91 | describe("graceful plugin initialization failure", () => { |
92 | | -it("does not crash when register throws", async () => { |
| 92 | +it("marks plugin entry errored when register throws", async () => { |
93 | 93 | const plugin = writePlugin({ |
94 | 94 | id: "throws-on-register", |
95 | 95 | body: `module.exports = { id: "throws-on-register", register() { throw new Error("config schema mismatch"); } };`, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -324,7 +324,7 @@ describe("runSetupWizard", () => {
|
324 | 324 | return dir; |
325 | 325 | } |
326 | 326 | |
327 | | -it("does not crash when preferred-provider lookup sees a provider without an id", async () => { |
| 327 | +it("skips provider entries without an id during preferred-provider lookup", async () => { |
328 | 328 | setupChannels.mockClear(); |
329 | 329 | readConfigFileSnapshot.mockResolvedValueOnce({ |
330 | 330 | path: "/tmp/.openclaw/openclaw.json", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。