fix(server): main's settings, keybindings and session tests compile again (#16363)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
2d162d157d
commit
fad6732256
3 files changed
+4
-4
No files matched your search
@@ -620,7 +620,7 @@ it.layer(NodeServices.layer)("keybindings", (it) => {
|
||||
const configState = yield* keybindings.loadConfigState;
|
||||
assert.deepEqual(configState.issues, []);
|
||||
assert.isTrue(configState.keybindings.some((entry) => entry.command === "terminal.toggle"));
|
||||
}).pipe(Effect.provide(makeKeybindingsLayer())),
|
||||
}).pipe(Effect.provide(layerKeybindings())),
|
||||
);
|
||||
|
||||
it.effect("updates cached resolved config after upsert", () =>
|
||||
|
||||
@@ -930,7 +930,7 @@ it.effect("ProviderSessionManagerV2 records provider session and turn metrics",
|
||||
});
|
||||
|
||||
yield* effect.pipe(
|
||||
Effect.provide(makeTestLayer({ state, idleTimeoutMs: 60_000 })),
|
||||
Effect.provide(layerTest({ state, idleTimeoutMs: 60_000 })),
|
||||
// A private registry keeps other tests' provider metrics out of the assertions.
|
||||
Effect.provideService(Metric.MetricRegistry, new Map()),
|
||||
);
|
||||
|
||||
@@ -49,7 +49,7 @@ const layerServerSettings = () =>
|
||||
),
|
||||
);
|
||||
|
||||
/** Like `makeServerSettingsLayer`, but also exposes the secret store for assertions. */
|
||||
/** Like `layerServerSettings`, but also exposes the secret store for assertions. */
|
||||
const layerServerSettingsWithSecrets = () =>
|
||||
ServerSettingsModule.layer.pipe(
|
||||
Layer.provideMerge(ServerSecretStore.layer),
|
||||
@@ -322,7 +322,7 @@ it.layer(NodeServices.layer)("server settings", (it) => {
|
||||
|
||||
const settings = yield* serverSettings.getSettings;
|
||||
assert.equal(settings.responseStreamingMode, "turn");
|
||||
}).pipe(Effect.provide(makeServerSettingsLayer())),
|
||||
}).pipe(Effect.provide(layerServerSettings())),
|
||||
);
|
||||
|
||||
it.effect("decodes nested settings patches", () =>
|
||||
|
||||
Reference in new issue
Block a user