Skip to content

Commit 32b32d4

Browse files
committed
fix(acp): preserve main test pruning after merge
1 parent 9673c67 commit 32b32d4

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

‎packages/effect-acp/src/protocol.test.ts‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -323,32 +323,6 @@ it.layer(NodeServices.layer)("effect-acp protocol", (it) => {
323323
}),
324324
);
325325

326-
it.effect("decodes standard JSON-RPC errors into typed ACP request failures", () =>
327-
Effect.gen(function* () {
328-
const { stdio, input, output } = yield* makeInMemoryStdio();
329-
const transport = yield* AcpProtocol.makeAcpPatchedProtocol({
330-
stdio,
331-
serverRequestMethods: new Set(),
332-
});
333-
334-
const request = yield* transport.request("x/auth", {}).pipe(Effect.forkScoped);
335-
const outbound = yield* decodeJsonRpcRequestId(yield* Queue.take(output));
336-
yield* Queue.offer(
337-
input,
338-
yield* encodeJsonl(JsonRpcErrorResponse, {
339-
jsonrpc: "2.0",
340-
id: outbound.id,
341-
error: { code: -32000, message: "Authentication required" },
342-
}),
343-
);
344-
345-
const error = yield* Fiber.join(request).pipe(Effect.flip, Effect.orDie);
346-
assert.instanceOf(error, AcpError.AcpRequestError);
347-
assert.equal(error.code, -32000);
348-
assert.equal(error.message, "Authentication required");
349-
}),
350-
);
351-
352326
// clanka once sent a usage_update without `used` and `size`. One bad update
353327
// must not end a session whose later updates are fine.
354328
it.effect("drops a session/update that fails to decode and keeps reading", () =>

0 commit comments

Comments
 (0)