Skip to content

Commit c5ce904

Browse files
test(server): link state keeps a check that ran after the tunnel config was stored
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 87e5d66 commit c5ce904

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎apps/server/src/cloud/CloudLink.lifecycle.test.ts‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,4 +1079,27 @@ describe("releaseManagedTunnelOnShutdown", () => {
10791079
}),
10801080
);
10811081
});
1082+
1083+
it.effect("reports a check that ran after the managed tunnel config was stored", () => {
1084+
const { store } = makeMemorySecretStore(managedLinkSecrets);
1085+
const reachable = {
1086+
status: "reachable" as const,
1087+
checkedAt: "2026-10-29T00:00:00.000Z",
1088+
readyConnections: 4,
1089+
protocol: "quic",
1090+
};
1091+
1092+
return Effect.gen(function* () {
1093+
const state = yield* (yield* CloudLink.CloudLink).linkState();
1094+
1095+
expect(state.reachability).toEqual(reachable);
1096+
}).pipe(
1097+
provideReleaseHarness({
1098+
store,
1099+
applyConfigCalls: [],
1100+
requests: [],
1101+
latestReachability: Effect.succeedSome(reachable),
1102+
}),
1103+
);
1104+
});
10821105
});

0 commit comments

Comments
 (0)