Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): bound OpenCode version probes #8750

Mergedyashranaway(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/8750/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 56 additions and 10 deletions.

x
0 of 3 viewed, 3 left
33 additions and 9 deletionsapps/server/src/provider/Layers/OpenCodeProvider.test.tsModified
View file
@@ -3,8 +3,10 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import { it } from "@effect/vitest";
import * as Effect from "effect/Effect";
+import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Schema from "effect/Schema";
+import * as TestClock from "effect/testing/TestClock";
import { beforeEach } from "vite-plus/test";
​
import { OpenCodeSettings } from "@t3tools/contracts";
@@ -34,6 +36,7 @@
const runtimeMock = {
state: {
runVersionError: null as Error | null,
+ runVersionPending: false,
versionStdout: DEFAULT_VERSION_STDOUT,
inventoryError: null as Error | null,
connectionError: null as Error | null,
@@ -52,6 +55,7 @@
},
reset() {
this.state.runVersionError = null;
+ this.state.runVersionPending = false;
this.state.versionStdout = DEFAULT_VERSION_STDOUT;
this.state.inventoryError = null;
this.state.connectionError = null;