Skip to content

Commit 7fb7c60

Browse files
test(client-runtime): driver test provides a real HTTP client layer
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 8a4ba50 commit 7fb7c60

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/client-runtime/src/connection/driver.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as Effect from "effect/Effect";
44
import * as Layer from "effect/Layer";
55
import * as Option from "effect/Option";
66
import * as Ref from "effect/Ref";
7-
import * as HttpClient from "effect/http/HttpClient";
7+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
88

99
import * as RemoteEnvironmentAuthorization from "../authorization/service.ts";
1010
import * as RpcSession from "../rpc/session.ts";
@@ -52,7 +52,8 @@ describe("ConnectionDriver", () => {
5252
),
5353
}),
5454
Layer.mock(RemoteEnvironmentAuthorization.RemoteEnvironmentAuthorization)({}),
55-
Layer.mock(HttpClient.HttpClient)({}),
55+
// SSH routes have no HTTP check, so the driver never sends a request.
56+
FetchHttpClient.layer,
5657
),
5758
),
5859
);

0 commit comments

Comments
 (0)