Skip to content

Commit 70c5997

Browse files
committed
fix(server): align merged installer fixtures with current APIs
1 parent e72b605 commit 70c5997

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

‎apps/server/src/provider/AntigravityInstallation.test.ts‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,18 @@ const makeHarness = Effect.fn("test.makeAntigravityInstallation")(function* (
208208
Effect.suspend(() => {
209209
requests.push(request.url);
210210
if (request.url === ACP_REGISTRY_URL) {
211-
return Effect.succeed(HttpClientResponse.fromWeb(
212-
request,
213-
options.registry === undefined
214-
? new Response(null, { status: 503 })
215-
: Response.json(options.registry),
216-
));
211+
return Effect.succeed(
212+
HttpClientResponse.fromWeb(
213+
request,
214+
options.registry === undefined
215+
? new Response(null, { status: 503 })
216+
: Response.json(options.registry),
217+
),
218+
);
217219
}
218220
const served = options.archives?.[request.url];
219-
if (served) return Effect.succeed(HttpClientResponse.fromWeb(request, new Response(served)));
221+
if (served)
222+
return Effect.succeed(HttpClientResponse.fromWeb(request, new Response(served)));
220223
if (options.connectTimeout) {
221224
return Effect.fail(
222225
new HttpClientError.HttpClientError({
@@ -827,8 +830,8 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("Antigravity inst
827830
});
828831

829832
const { installation: windows } = yield* makeHarness({ baseDir, platform: "win32" });
830-
for (const name of ["agy.EXE", "agy.cmd"]) {
831-
const windowsDirectory = path.join(baseDir, `windows-${name}-${name === name.toLowerCase() ? "lower" : "upper"}`);
833+
for (const name of ["agy.EXE", "agy.CMD"]) {
834+
const windowsDirectory = path.join(baseDir, `windows-${name}`);
832835
yield* fs.makeDirectory(windowsDirectory);
833836
yield* fs.writeFileString(path.join(windowsDirectory, name), "cli");
834837
expect(yield* windows.resolve("agy", { PATH: windowsDirectory })).toMatchObject({

‎apps/server/src/provider/AntigravityInstallation.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ import * as Scope from "effect/Scope";
2222
import * as Semaphore from "effect/Semaphore";
2323
import * as Stream from "effect/Stream";
2424
import * as SubscriptionRef from "effect/SubscriptionRef";
25-
import { FetchHttpClient, HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/http";
25+
import {
26+
FetchHttpClient,
27+
HttpClient,
28+
HttpClientError,
29+
HttpClientRequest,
30+
HttpClientResponse,
31+
} from "effect/http";
2632
import * as ChildProcess from "effect/process/ChildProcess";
2733
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
2834
import * as NodeCrypto from "node:crypto";

0 commit comments

Comments
 (0)