Skip to content

Commit ed455d9

Browse files
test(desktop): keep WSL deadline coverage focused
1 parent ad01158 commit ed455d9

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎apps/desktop/src/wsl/DesktopWslEnvironment.test.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,6 @@ describe("WSL command deadlines", () => {
245245
}),
246246
);
247247

248-
it.effect("returns immediately when warmup exits unsuccessfully", () =>
249-
Effect.gen(function* () {
250-
const { environment, exited, released } = yield* makeControlledEnvironment;
251-
yield* Deferred.succeed(exited, ChildProcessSpawner.ExitCode(1));
252-
yield* environment.preWarm("Ubuntu");
253-
expect(yield* Deferred.isDone(released)).toBe(true);
254-
}),
255-
);
256-
257248
it.effect("still gives path conversion only 10 seconds and releases its process", () =>
258249
Effect.gen(function* () {
259250
const { environment, started, released } = yield* makeControlledEnvironment;

‎apps/desktop/src/wsl/DesktopWslEnvironment.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import { parseWslDistroList, type WslDistro } from "./wslPathParsing.ts";
1717

1818
const PROCESS_TERMINATE_GRACE = Duration.seconds(1);
1919
const LIST_TIMEOUT = Duration.seconds(8);
20-
// Pre-warm boots a stopped distro, and a cold systemd start can take 10 to 15
21-
// seconds. The calls after it find the distro running, so they keep 10 seconds.
20+
// Booting a stopped distro needs more time than converting paths in a running one.
2221
const PRE_WARM_TIMEOUT = Duration.seconds(30);
2322
const WSLPATH_TIMEOUT = Duration.seconds(10);
2423
const PROBE_TIMEOUT = Duration.seconds(10);

0 commit comments

Comments
 (0)