Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/desktop/src/updates/DesktopUpdates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("DesktopUpdates", () => {
).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
});

it.effect("checks shortly after startup and then every four hours", () => {
it.effect("checks shortly after startup and then every four minutes", () => {
const harness = makeHarness();

return Effect.scoped(
Expand All @@ -270,10 +270,10 @@ describe("DesktopUpdates", () => {
yield* TestClock.adjust("15 seconds");
assert.equal(harness.checkCount(), 1);

yield* TestClock.adjust("3 hours");
yield* TestClock.adjust("3 minutes");
assert.equal(harness.checkCount(), 1);

yield* TestClock.adjust("1 hour");
yield* TestClock.adjust("1 minute");
assert.equal(harness.checkCount(), 2);
}),
).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/updates/DesktopUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import {
const CHANNEL_CHANGE_RETRY_DELAY = Duration.seconds(1);
const CHANNEL_CHANGE_RETRIES = 30;
const AUTO_UPDATE_STARTUP_DELAY = "15 seconds";
const AUTO_UPDATE_POLL_INTERVAL = "4 hours";
const AUTO_UPDATE_POLL_INTERVAL = "4 minutes";
const UPDATE_CHECK_WAIT = Duration.seconds(90);

type UpdateAction = "check" | "download" | "install" | "install-recovery" | "channel";
Expand Down
Loading