Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

DesktopUpdates.test.ts

611 lines23.0 KB

1import { assert, describe, it } from "@effect/vitest";
2import * as NodeServices from "@effect/platform-node/NodeServices";
3import type { DesktopUpdateState } from "@t3tools/contracts";
4import * as Cause from "effect/Cause";
5import * as Deferred from "effect/Deferred";
6import * as Duration from "effect/Duration";
7import * as Effect from "effect/Effect";
8import * as Fiber from "effect/Fiber";
9import * as Layer from "effect/Layer";
10import * as Logger from "effect/Logger";
11import * as Option from "effect/Option";
12import * as References from "effect/References";
13import * as Ref from "effect/Ref";
14import * as TestClock from "effect/testing/TestClock";
15​
16import * as DesktopBackendPool from "../backend/DesktopBackendPool.ts";
17import * as DesktopConfig from "../app/DesktopConfig.ts";
18import * as DesktopEnvironment from "../app/DesktopEnvironment.ts";
19import * as ElectronUpdater from "../electron/ElectronUpdater.ts";
20import * as ElectronWindow from "../electron/ElectronWindow.ts";
21import * as DesktopAppSettings from "../settings/DesktopAppSettings.ts";
22import * as DesktopState from "../app/DesktopState.ts";
23import * as DesktopUpdates from "./DesktopUpdates.ts";
24​
25interface UpdatesHarnessOptions {
26 readonly checkForUpdates?: Effect.Effect<
27 void,
28 ElectronUpdater.ElectronUpdaterCheckForUpdatesError
29 >;
30 readonly setUpdateChannelError?: DesktopAppSettings.DesktopSettingsWriteError;
31 readonly setDisableDifferentialDownload?: Effect.Effect<void>;
32 readonly stopBackend?: Effect.Effect<void>;
33 readonly env?: Record<string, string | undefined>;
35​
36const flushCallbacks = Effect.yieldNow;
37​
38function makeHarness(options: UpdatesHarnessOptions = {}) {
39 let checkCount = 0;
40 let allowDowngrade = false;
41 let fullChangelog = false;
42 const feedUrls: ElectronUpdater.ElectronUpdaterFeedUrl[] = [];
43 const listeners = new Map<string, Set<(...args: readonly unknown[]) => void>>();
44 const sentStates: DesktopUpdateState[] = [];
45​
46 const addListener = (eventName: string, listener: (...args: readonly unknown[]) => void) => {
47 const eventListeners = listeners.get(eventName) ?? new Set();
48 eventListeners.add(listener);
49 listeners.set(eventName, eventListeners);
50 };
51​
52 const removeListener = (eventName: string, listener: (...args: readonly unknown[]) => void) => {
53 const eventListeners = listeners.get(eventName);
54 if (!eventListeners) {
55 return;
56 }
57 eventListeners.delete(listener);
58 if (eventListeners.size === 0) {
59 listeners.delete(eventName);
60 }
61 };
62​
63 const updaterLayer = Layer.succeed(ElectronUpdater.ElectronUpdater, {
64 setFeedURL: (options) =>
65 Effect.sync(() => {
66 feedUrls.push(options);
67 }),
68 setAutoDownload: () => Effect.void,
69 setAutoInstallOnAppQuit: () => Effect.void,
70 setChannel: () => Effect.void,
71 setAllowPrerelease: () => Effect.void,
72 allowDowngrade: Effect.sync(() => allowDowngrade),
73 setAllowDowngrade: (value) =>
74 Effect.sync(() => {
75 allowDowngrade = value;
76 }),
77 setFullChangelog: (value) =>
78 Effect.sync(() => {
79 fullChangelog = value;
80 }),
81 setDisableDifferentialDownload: () => options.setDisableDifferentialDownload ?? Effect.void,
82 checkForUpdates: Effect.sync(() => {
83 checkCount += 1;
84 }).pipe(Effect.andThen(options.checkForUpdates ?? Effect.void)),
85 downloadUpdate: Effect.void,
86 quitAndInstall: () => Effect.void,
87 on: (eventName, listener) =>
88 Effect.acquireRelease(
89 Effect.sync(() => {
90 addListener(eventName, listener as unknown as (...args: readonly unknown[]) => void);
91 }),
92 () =>
93 Effect.sync(() => {
94 removeListener(eventName, listener as unknown as (...args: readonly unknown[]) => void);
95 }),
96 ).pipe(Effect.asVoid),
97 } satisfies ElectronUpdater.ElectronUpdater["Service"]);
98​
99 const windowLayer = Layer.succeed(ElectronWindow.ElectronWindow, {
100 create: () => Effect.die("unexpected BrowserWindow creation"),
101 main: Effect.succeed(Option.none()),
102 currentMainOrFirst: Effect.succeed(Option.none()),
103 focusedMainOrFirst: Effect.succeed(Option.none()),
104 setMain: () => Effect.void,
105 clearMain: () => Effect.void,
106 reveal: () => Effect.void,
107 sendAll: (_channel, state) =>
108 Effect.sync(() => {
109 sentStates.push(state as DesktopUpdateState);
110 }),
111 destroyAll: Effect.void,
112 syncAllAppearance: () => Effect.void,
113 } satisfies ElectronWindow.ElectronWindow["Service"]);
114​
115 const stubBackendInstance: DesktopBackendPool.DesktopBackendInstance = {
116 id: DesktopBackendPool.PRIMARY_INSTANCE_ID,
117 label: Effect.succeed("Windows"),
118 start: Effect.void,
119 stop: () => options.stopBackend ?? Effect.void,
120 currentConfig: Effect.succeed(Option.none()),
121 snapshot: Effect.succeed({
122 desiredRunning: false,
123 ready: false,
124 activePid: Option.none(),
125 restartAttempt: 0,
126 restartScheduled: false,
127 }),
128 waitForReady: () => Effect.succeed(true),
129 probeReady: () => Effect.succeed(true),
130 };
131 const backendLayer = DesktopBackendPool.layerTest([stubBackendInstance]);
132​
133 const environmentLayer = DesktopEnvironment.layer({
134 dirname: "/repo/apps/desktop/src",
135 homeDirectory: `/tmp/t3-desktop-updates-home-${process.pid}`,
136 platform: "darwin",
137 processArch: "x64",
138 appVersion: "1.2.3",
139 appPath: "/repo",
140 isPackaged: true,
141 resourcesPath: "/missing/resources",
142 runningUnderArm64Translation: false,
143 }).pipe(
144 Layer.provide(
145 Layer.mergeAll(
146 NodeServices.layer,
147 DesktopConfig.layerTest({
148 T3CODE_HOME: `/tmp/t3-desktop-updates-test-${process.pid}`,
149 T3CODE_DESKTOP_MOCK_UPDATES: "true",
150 T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT: "4141",
151 ...options.env,
152 }),
153 ),
154 ),
155 );
156​
157 const setUpdateChannelError = options.setUpdateChannelError;
158 const settingsLayer = setUpdateChannelError
159 ? Layer.succeed(DesktopAppSettings.DesktopAppSettings, {
160 get: Effect.succeed(DesktopAppSettings.DEFAULT_DESKTOP_SETTINGS),
161 load: Effect.succeed(DesktopAppSettings.DEFAULT_DESKTOP_SETTINGS),
162 setMainWindowBounds: () => Effect.die("unexpected main window bounds update"),
163 setServerExposureMode: () => Effect.die("unexpected server exposure update"),
164 setTailscaleServe: () => Effect.die("unexpected Tailscale Serve update"),
165 setUpdateChannel: () => Effect.fail(setUpdateChannelError),
166 setWslBackendEnabled: () => Effect.die("unexpected WSL backend toggle"),
167 setWslDistro: () => Effect.die("unexpected WSL distro change"),
168 setWslOnly: () => Effect.die("unexpected WSL-only toggle"),
169 applyWslWindowsFallback: Effect.die("unexpected WSL Windows fallback"),
170 applyWslWindowsFallbackInMemory: Effect.die("unexpected WSL Windows fallback"),
171 } satisfies DesktopAppSettings.DesktopAppSettings["Service"])
172 : DesktopAppSettings.layer;
173​
174 const layer = DesktopUpdates.layer.pipe(
175 Layer.provideMerge(updaterLayer),
176 Layer.provideMerge(windowLayer),
177 Layer.provideMerge(backendLayer),
178 Layer.provideMerge(DesktopState.layer),
179 Layer.provideMerge(settingsLayer),
180 Layer.provideMerge(
181 DesktopConfig.layerTest({
182 T3CODE_HOME: `/tmp/t3-desktop-updates-test-${process.pid}`,
183 T3CODE_DESKTOP_MOCK_UPDATES: "true",
184 T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT: "4141",
185 ...options.env,
186 }),
187 ),
188 Layer.provideMerge(environmentLayer),
189 Layer.provideMerge(NodeServices.layer),
190 );
191​
192 return {
193 layer,
194 checkCount: () => checkCount,
195 feedUrls: () => feedUrls,
196 fullChangelog: () => fullChangelog,
197 listenerCount: () =>
198 Array.from(listeners.values()).reduce(
199 (total, eventListeners) => total + eventListeners.size,
200 0,
201 ),
202 sentStates,
203 emit: (eventName: string, payload?: unknown) => {
204 for (const listener of listeners.get(eventName) ?? []) {
205 listener(payload);
206 }
207 },
208 };
210​
211describe("DesktopUpdates", () => {
212 it("preserves complete causes for update poller and event failures", () => {
213 const cause = Cause.combine(
214 Cause.fail(new Error("updater failed")),
215 Cause.die(new Error("updater defect")),
216 );
217 const pollerError = new DesktopUpdates.DesktopUpdatePollerError({
218 poller: "startup",
219 cause,
220 });
221 const eventError = new DesktopUpdates.DesktopUpdateEventHandlingError({
222 event: "download-progress",
223 cause,
224 });
225 const reportedError = new DesktopUpdates.DesktopUpdaterReportedError({
226 operation: "download",
227 cause,
228 });
229 const unexpectedActionError = new DesktopUpdates.DesktopUpdateUnexpectedActionError({
230 action: "install",
231 cause,
232 });
233​
234 assert.strictEqual(pollerError.cause, cause);
235 assert.equal(pollerError.poller, "startup");
236 assert.equal(pollerError.message, "Desktop update startup poller failed.");
237 assert.strictEqual(eventError.cause, cause);
238 assert.equal(eventError.event, "download-progress");
239 assert.equal(eventError.message, "Failed to handle desktop update download-progress event.");
240 assert.strictEqual(reportedError.cause, cause);
241 assert.equal(reportedError.operation, "download");
242 assert.equal(reportedError.message, "Desktop updater download operation reported an error.");
243 assert.strictEqual(unexpectedActionError.cause, cause);
244 assert.equal(unexpectedActionError.action, "install");
245 assert.equal(
246 unexpectedActionError.message,
247 "Desktop update install action failed unexpectedly.",
248 );
249 });
250​
251 it.effect("configures the updater and runs startup checks on the test clock", () => {
252 const harness = makeHarness();
253​
254 return Effect.gen(function* () {
255 yield* Effect.scoped(
256 Effect.gen(function* () {
257 const updates = yield* DesktopUpdates.DesktopUpdates;
258 yield* updates.configure;
259​
260 const state = yield* updates.getState;
261 assert.equal(state.enabled, true);
262 assert.equal(state.status, "idle");
263 assert.deepEqual(harness.feedUrls(), [
264 { provider: "generic", url: "http://localhost:4141" },
265 ]);
266 assert.equal(harness.listenerCount(), 6);
267 assert.equal(harness.checkCount(), 0);
268​
269 yield* TestClock.adjust(Duration.millis(15_000));
270 assert.equal(harness.checkCount(), 1);
271 }),
272 );
273​
274 assert.equal(harness.listenerCount(), 0);
275 }).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
276 });
277​
278 it.effect("updates and broadcasts state from updater events", () => {
279 const harness = makeHarness();
280​
281 return Effect.scoped(
282 Effect.gen(function* () {
283 const updates = yield* DesktopUpdates.DesktopUpdates;
284 yield* updates.configure;
285​
286 harness.emit("update-available", { version: "1.2.4" });
287 yield* flushCallbacks;
288​
289 const state = yield* updates.getState;
290 assert.equal(state.status, "available");
291 assert.equal(state.availableVersion, "1.2.4");
292 assert.isNotNull(state.checkedAt);
293 assert.equal(harness.sentStates.at(-1)?.status, "available");
294 }),
295 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
296 });
297​
298 it.effect("enables nightly full changelog release notes and broadcasts summaries", () => {
299 const harness = makeHarness();
300​
301 return Effect.scoped(
302 Effect.gen(function* () {
303 const updates = yield* DesktopUpdates.DesktopUpdates;
304 yield* updates.configure;
305​
306 yield* updates.setChannel("nightly");
307 assert.equal(harness.fullChangelog(), true);
308​
309 harness.emit("update-available", {
310 version: "1.2.4-nightly.20260709.766",
311 releaseNotes: [
312 {
313 version: "1.2.4-nightly.20260709.766",
314 note: `<h2>What's Changed</h2><ul><li>feat(client): persist offline environment data by <a>@juliusmarminge</a> in <a>#3795</a></li></ul><h2>Full Changelog</h2>`,
315 },
316 {
317 version: "1.2.4-nightly.20260709.765",
318 note: "- [codex] Upgrade Clerk stack by @juliusmarminge in #3821",
319 },
320 ],
321 });
322 yield* flushCallbacks;
323​
324 const state = yield* updates.getState;
325 assert.equal(state.status, "available");
326 assert.deepEqual(state.releaseNotes, [
327 {
328 version: "1.2.4-nightly.20260709.766",
329 items: ["feat(client): persist offline environment data by @juliusmarminge in #3795"],
330 },
331 {
332 version: "1.2.4-nightly.20260709.765",
333 items: ["[codex] Upgrade Clerk stack by @juliusmarminge in #3821"],
334 },
335 ]);
336 assert.deepEqual(harness.sentStates.at(-1)?.releaseNotes, state.releaseNotes);
337 }),
338 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
339 });
340​
341 it.effect("keeps raw updater event failures out of update state", () => {
342 const harness = makeHarness();
343 const cause = new Error(
344 "request failed for https://user:secret@example.com/update?token=secret",
345 );
346​
347 return Effect.scoped(
348 Effect.gen(function* () {
349 const updates = yield* DesktopUpdates.DesktopUpdates;
350 yield* updates.configure;
351​
352 harness.emit("error", cause);
353 yield* flushCallbacks;
354​
355 const state = yield* updates.getState;
356 assert.equal(state.status, "error");
357 assert.equal(state.message, "Desktop updater background operation reported an error.");
358 assert.notInclude(state.message ?? "", "secret");
359 }),
360 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
361 });
362​
363 it.effect("logs bounded updater failure context without exposing the cause", () => {
364 const cause = new Error(
365 "request failed for https://user:secret@example.com/update?token=secret",
366 );
367 const updaterError = new ElectronUpdater.ElectronUpdaterCheckForUpdatesError({
368 channel: null,
369 cause,
370 });
371 const harness = makeHarness({ checkForUpdates: Effect.fail(updaterError) });
372 const loggedAnnotations: Array<Record<string, unknown>> = [];
373 const logger = Logger.make(({ fiber }) => {
374 const annotations = fiber.getRef(References.CurrentLogAnnotations);
375 if (annotations.errorTag === "ElectronUpdaterCheckForUpdatesError") {
376 loggedAnnotations.push(annotations);
377 }
378 });
379​
380 return Effect.scoped(
381 Effect.gen(function* () {
382 const updates = yield* DesktopUpdates.DesktopUpdates;
383 yield* updates.configure;
384​
385 yield* updates.check("manual");
386​
387 const state = yield* updates.getState;
388 const loggedAnnotation = loggedAnnotations.at(-1);
389 assert.isDefined(loggedAnnotation);
390 assert.equal(loggedAnnotation.errorTag, "ElectronUpdaterCheckForUpdatesError");
391 assert.isNull(loggedAnnotation.channel);
392 assert.notProperty(loggedAnnotation, "error");
393 assert.notInclude(Object.values(loggedAnnotation).map(String).join(" "), "secret");
394 assert.equal(
395 state.message,
396 "Electron updater failed to check for updates on channel default.",
397 );
398 assert.notInclude(state.message ?? "", "secret");
399 }),
400 ).pipe(
401 Effect.provide(
402 Layer.mergeAll(
403 TestClock.layer(),
404 harness.layer,
405 Logger.layer([logger], { mergeWithExisting: false }),
406 ),
407 ),
408 );
409 });
410​
411 it.effect("recovers download state after an unexpected setup failure", () => {
412 let disableDifferentialCalls = 0;
413 const harness = makeHarness({
414 setDisableDifferentialDownload: Effect.suspend(() => {
415 disableDifferentialCalls += 1;
416 return disableDifferentialCalls === 1
417 ? Effect.void
418 : Effect.die(new Error("download setup failed"));
419 }),
420 });
421​
422 return Effect.scoped(
423 Effect.gen(function* () {
424 const updates = yield* DesktopUpdates.DesktopUpdates;
425 yield* updates.configure;
426 harness.emit("update-available", { version: "1.2.4" });
427 yield* flushCallbacks;
428​
429 const result = yield* updates.download;
430 assert.isTrue(result.accepted);
431 assert.isFalse(result.completed);
432​
433 const failedState = yield* updates.getState;
434 assert.equal(failedState.status, "available");
435 assert.equal(failedState.errorContext, "download");
436 assert.equal(failedState.message, "Desktop update download action failed unexpectedly.");
437​
438 const changedState = yield* updates.setChannel("nightly");
439 assert.equal(changedState.channel, "nightly");
440 }),
441 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
442 });
443​
444 it.effect("restores download state and permits retry after interruption", () =>
445 Effect.gen(function* () {
446 const actionStarted = yield* Deferred.make<void>();
447 let disableDifferentialCalls = 0;
448 const harness = makeHarness({
449 setDisableDifferentialDownload: Effect.suspend(() => {
450 disableDifferentialCalls += 1;
451 if (disableDifferentialCalls === 1) {
452 return Effect.void;
453 }
454 if (disableDifferentialCalls === 2) {
455 return Deferred.succeed(actionStarted, undefined).pipe(Effect.andThen(Effect.never));
456 }
457 return Effect.void;
458 }),
459 });
460​
461 yield* Effect.scoped(
462 Effect.gen(function* () {
463 const updates = yield* DesktopUpdates.DesktopUpdates;
464 yield* updates.configure;
465 harness.emit("update-available", { version: "1.2.4" });
466 yield* flushCallbacks;
467​
468 const downloadFiber = yield* updates.download.pipe(Effect.forkScoped);
469 yield* Deferred.await(actionStarted);
470 yield* Fiber.interrupt(downloadFiber);
471​
472 const interruptedState = yield* updates.getState;
473 assert.equal(interruptedState.status, "available");
474 assert.isNull(interruptedState.message);
475​
476 const retry = yield* updates.download;
477 assert.isTrue(retry.accepted);
478 assert.isTrue(retry.completed);
479 }),
480 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
481 }),
482 );
483​
484 it.effect("clears quitting state after an unexpected install setup failure", () => {
485 const harness = makeHarness({
486 stopBackend: Effect.die(new Error("backend stop failed")),
487 });
488​
489 return Effect.scoped(
490 Effect.gen(function* () {
491 const desktopState = yield* DesktopState.DesktopState;
492 const updates = yield* DesktopUpdates.DesktopUpdates;
493 yield* updates.configure;
494 harness.emit("update-downloaded", { version: "1.2.4" });
495 yield* flushCallbacks;
496​
497 const result = yield* updates.install;
498 assert.isTrue(result.accepted);
499 assert.isFalse(result.completed);
500 assert.isFalse(yield* Ref.get(desktopState.quitting));
501​
502 const failedState = yield* updates.getState;
503 assert.equal(failedState.status, "downloaded");
504 assert.equal(failedState.errorContext, "install");
505 assert.equal(failedState.message, "Desktop update install action failed unexpectedly.");
506​
507 const changedState = yield* updates.setChannel("nightly");
508 assert.equal(changedState.channel, "nightly");
509 }),
510 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
511 });
512​
513 it.effect("persists channel changes through the settings service", () => {
514 const harness = makeHarness();
515​
516 return Effect.scoped(
517 Effect.gen(function* () {
518 const settings = yield* DesktopAppSettings.DesktopAppSettings;
519 const updates = yield* DesktopUpdates.DesktopUpdates;
520 yield* updates.configure;
521​
522 const state = yield* updates.setChannel("nightly");
523 const persistedSettings = yield* settings.get;
524​
525 assert.equal(state.channel, "nightly");
526 assert.equal(persistedSettings.updateChannel, "nightly");
527 assert.equal(persistedSettings.updateChannelConfiguredByUser, true);
528 }),
529 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
530 });
531​
532 it.effect("does not persist an unchanged update channel as a user preference", () => {
533 const harness = makeHarness();
534​
535 return Effect.scoped(
536 Effect.gen(function* () {
537 const settings = yield* DesktopAppSettings.DesktopAppSettings;
538 const updates = yield* DesktopUpdates.DesktopUpdates;
539 yield* updates.configure;
540​
541 const state = yield* updates.setChannel("latest");
542 const persistedSettings = yield* settings.get;
543​
544 assert.equal(state.channel, "latest");
545 assert.equal(persistedSettings.updateChannel, "latest");
546 assert.equal(persistedSettings.updateChannelConfiguredByUser, false);
547 }),
548 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
549 });
550​
551 it.effect("fails channel changes with a typed error while a check is in progress", () =>
552 Effect.gen(function* () {
553 const checkStarted = yield* Deferred.make<void>();
554 const releaseCheck = yield* Deferred.make<void>();
555 const harness = makeHarness({
556 checkForUpdates: Deferred.succeed(checkStarted, undefined).pipe(
557 Effect.andThen(Deferred.await(releaseCheck)),
558 ),
559 });
560​
561 yield* Effect.scoped(
562 Effect.gen(function* () {
563 const updates = yield* DesktopUpdates.DesktopUpdates;
564 yield* updates.configure;
565​
566 const checkFiber = yield* updates.check("manual").pipe(Effect.forkScoped);
567 yield* Deferred.await(checkStarted);
568​
569 const exit = yield* Effect.exit(updates.setChannel("nightly"));
570 assert.equal(exit._tag, "Failure");
571 if (exit._tag === "Failure") {
572 const error = Cause.squash(exit.cause);
573 assert.instanceOf(error, DesktopUpdates.DesktopUpdateActionInProgressError);
574 assert.equal(error.action, "check");
575 assert.equal(error.requestedChannel, "nightly");
576 }
577​
578 yield* Deferred.succeed(releaseCheck, undefined);
579 yield* Fiber.join(checkFiber);
580 }),
581 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
582 }),
583 );
584​
585 it.effect("preserves settings failure context when an update channel cannot be persisted", () => {
586 const diskFailure = new Error("disk exploded");
587 const settingsFailure = new DesktopAppSettings.DesktopSettingsWriteError({
588 operation: "replace-settings-file",
589 path: "/tmp/settings.json",
590 cause: diskFailure,
591 });
592 const harness = makeHarness({ setUpdateChannelError: settingsFailure });
593​
594 return Effect.scoped(
595 Effect.gen(function* () {
596 const updates = yield* DesktopUpdates.DesktopUpdates;
597 yield* updates.configure;
598​
599 const error = yield* updates.setChannel("nightly").pipe(Effect.flip);
600​
601 assert.instanceOf(error, DesktopUpdates.DesktopUpdateChannelPersistenceError);
602 assert.isTrue(DesktopUpdates.isDesktopUpdateSetChannelError(error));
603 assert.equal(error.channel, "nightly");
604 assert.strictEqual(error.cause, settingsFailure);
605 assert.strictEqual(error.cause.cause, diskFailure);
606 assert.equal(error.message, "Failed to persist the nightly desktop update channel.");
607 assert.notInclude(error.message, diskFailure.message);
608 }),
609 ).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
610 });
611});