fix(daemon): handle systemctl is-enabled exit 4 (not-found) on Ubuntu (#33634)

Merged via squash.

Prepared head SHA: 67dffc3ee2
Co-authored-by: Yuandiaodiaodiao <33371662+Yuandiaodiaodiao@users.noreply.github.com>
Co-authored-by: shakkernerd <165377636+shakkernerd@users.noreply.github.com>
Reviewed-by: @shakkernerd
This commit is contained in:
a
2026-03-05 00:13:45 +08:00
committed by GitHub
parent 3fa43ec221
commit 4fb40497d4
4 changed files with 22 additions and 3 deletions

View File

@@ -27,14 +27,14 @@ describe("plugin-sdk root alias", () => {
expect(parsed.success).toBe(false);
});
it("loads legacy root exports lazily through the proxy", () => {
it("loads legacy root exports lazily through the proxy", { timeout: 240_000 }, () => {
expect(typeof rootSdk.resolveControlCommandGate).toBe("function");
expect(typeof rootSdk.default).toBe("object");
expect(rootSdk.default).toBe(rootSdk);
expect(rootSdk.__esModule).toBe(true);
});
it("preserves reflection semantics for lazily resolved exports", () => {
it("preserves reflection semantics for lazily resolved exports", { timeout: 240_000 }, () => {
expect("resolveControlCommandGate" in rootSdk).toBe(true);
const keys = Object.keys(rootSdk);
expect(keys).toContain("resolveControlCommandGate");