Skip to content

Commit a09bf0e

Browse files
committed
test(server): fix Codex SQLite regression setup
1 parent ec97c0f commit a09bf0e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ it.live.skipIf(!symlinksSupported)(
388388
Effect.provide(
389389
ServerConfig.layerTest(process.cwd(), {
390390
prefix: "t3-managed-runtime-sqlite-conflict-",
391-
}).pipe(Layer.provideMerge(NodeServices.layer)),
391+
}).pipe(Layer.provideMerge(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))),
392392
),
393393
),
394394
);

‎apps/server/src/provider/Drivers/CodexDriver.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as NodePath from "node:path";
99
import { expect, it } from "@effect/vitest";
1010
import { EnvironmentId, ProviderInstanceId, ProviderSessionId, ThreadId } from "@t3tools/contracts";
1111
import * as HostProcess from "@t3tools/shared/HostProcess";
12+
import { symlinksSupported } from "@t3tools/shared/testing/symlinks";
1213
import * as Effect from "effect/Effect";
1314
import * as Exit from "effect/Exit";
1415
import * as Deferred from "effect/Deferred";
@@ -105,7 +106,7 @@ const noSpawn = ChildProcessSpawner.make(() =>
105106
const encodeCredentials = Schema.encodeEffect(Schema.fromJsonString(Schema.Unknown));
106107

107108
it.layer(layerTest)("CodexDriver", (it) => {
108-
it.effect.skipIf(!windowsHost)(
109+
it.effect.skipIf(!windowsHost || !symlinksSupported)(
109110
"surfaces managed SQLite recovery while preserving authenticated provider state",
110111
() =>
111112
Effect.gen(function* () {

0 commit comments

Comments
 (0)