test: tighten feishu reconnect log assertion · openclaw/openclaw@fb3a4bf
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,10 +130,9 @@ describe("feishu websocket cleanup", () => {
|
130 | 130 | |
131 | 131 | expect(createFeishuWSClientMock).toHaveBeenCalledTimes(2); |
132 | 132 | expect(recoveredClient.close).toHaveBeenCalledTimes(1); |
133 | | -expect(runtime.error).toHaveBeenCalledWith( |
134 | | -expect.stringContaining("WebSocket start failed, retrying in 1000ms"), |
135 | | -); |
| 133 | +expect(runtime.error).toHaveBeenCalledTimes(1); |
136 | 134 | const errorMessage = String(runtime.error.mock.calls[0]?.[0] ?? ""); |
| 135 | +expect(errorMessage).toContain("WebSocket start failed, retrying in 1000ms"); |
137 | 136 | expect(errorMessage).not.toContain("\n"); |
138 | 137 | expect(errorMessage).not.toContain("token_abc"); |
139 | 138 | expect(errorMessage).not.toContain("secret_abc"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。