Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): allow remote updates with database migrations #5374

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/5374/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 17 changed files with 58 additions and 6 deletions (loading 14).

x
0 of 17 viewed, 17 left
10 additions and 0 deletionsapps/server/src/cli/connect.test.tsModified
View file
@@ -10,6 +10,7 @@
import * as References from "effect/References";
import * as Terminal from "effect/Terminal";
​
+import * as BootService from "../cloud/bootService.ts";
import {
acquireRelayClientForLink,
formatHeadlessAuthorizationPrompt,
@@ -63,6 +64,15 @@
}),
);
​
+it.effect("keeps a successful connection when a remote service update is pending", () =>
+ Effect.gen(function* () {
+ const result = yield* recoverServiceOnboardingOffer(
+ Effect.fail(new BootService.BootServiceUpdatePendingError()),
+ );
+ assert.isFalse(result);
+ }),
+);
+​
it.effect("does not install the relay client when the user declines the managed download", () =>
Effect.gen(function* () {
let installCalls = 0;
2 additions and 0 deletionsapps/server/src/cli/service.tsModified
View file
@@ -185,6 +185,8 @@