test(hosts): include relay coverage in existing CI contracts

This commit is contained in:
Mohamed Boudra
2026-10-19 08:40:18 +02:00
parent b81f6c1350
commit 12baedf656
3 changed files with 5 additions and 3 deletions
@@ -357,7 +357,9 @@ test("disabled host configuration and source survive a fresh daemon instance", a
sourceKey: "stable",
});
await paseo.hosts.update(host.registrationId, { enabled: false });
expect((await stat(join(a.paseoHome, "hosts.json"))).mode & 0o777).toBe(0o600);
// Windows exposes inherited ACLs, not POSIX owner/group/other mode bits.
if (process.platform !== "win32")
expect((await stat(join(a.paseoHome, "hosts.json"))).mode & 0o777).toBe(0o600);
await a.close();
const restarted = await createTestPaseoDaemon({ paseoHomeRoot: root, cleanup: false });
cleanup.push(() => restarted.close());