Skip to content

Commit cefaeb9

Browse files
test(client-runtime): drop unnecessary Effect.gen wrapper
AI-assisted; verified with the tests and tools listed above.
1 parent 2bba92b commit cefaeb9

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

‎packages/client-runtime/src/rpc/client.test.ts‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,18 +329,16 @@ describe("environment RPC", () => {
329329
);
330330

331331
it.effect("resubscribes on the same session after a transport failure", () =>
332-
Effect.gen(function* () {
333-
yield* resumesOnTheSameSession(
334-
Stream.fail(
335-
new RpcClientError.RpcClientError({
336-
reason: new RpcClientError.RpcClientDefect({
337-
message: "stream failed",
338-
cause: new Error("stream failed"),
339-
}),
332+
resumesOnTheSameSession(
333+
Stream.fail(
334+
new RpcClientError.RpcClientError({
335+
reason: new RpcClientError.RpcClientDefect({
336+
message: "stream failed",
337+
cause: new Error("stream failed"),
340338
}),
341-
),
342-
);
343-
}),
339+
}),
340+
),
341+
),
344342
);
345343

346344
it.effect("resubscribes on the same session after a stream chunk fails to decode", () =>

0 commit comments

Comments
 (0)