mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 02:51:37 +00:00
test: drop duplicate role-ordering exception rewrite case
This commit is contained in:
@@ -787,19 +787,6 @@ describe("runReplyAgent typing (heartbeat)", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns friendly message for 'roles must alternate' errors thrown as exceptions", async () => {
|
|
||||||
state.runEmbeddedPiAgentMock.mockImplementationOnce(async () => {
|
|
||||||
throw new Error('messages: roles must alternate between "user" and "assistant"');
|
|
||||||
});
|
|
||||||
|
|
||||||
const { run } = createMinimalRun({});
|
|
||||||
const res = await run();
|
|
||||||
|
|
||||||
expect(res).toMatchObject({
|
|
||||||
text: expect.stringContaining("Message ordering conflict"),
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it("rewrites Bun socket errors into friendly text", async () => {
|
it("rewrites Bun socket errors into friendly text", async () => {
|
||||||
state.runEmbeddedPiAgentMock.mockImplementationOnce(async () => ({
|
state.runEmbeddedPiAgentMock.mockImplementationOnce(async () => ({
|
||||||
payloads: [
|
payloads: [
|
||||||
|
|||||||
Reference in New Issue
Block a user