fix(discovery): lazy-load bonjour; add tests

This commit is contained in:
Peter Steinberger
2025-12-13 03:55:32 +00:00
parent 47b4d245aa
commit 4b608117a2
5 changed files with 273 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ describe("gateway SIGTERM", () => {
child = null;
});
it("exits 0 on SIGTERM", { timeout: 15_000 }, async () => {
it("exits 0 on SIGTERM", { timeout: 30_000 }, async () => {
const port = await getFreePort();
const out: string[] = [];
const err: string[] = [];
@@ -70,7 +70,7 @@ describe("gateway SIGTERM", () => {
await waitForText(
out,
new RegExp(`gateway listening on ws://127\\.0\\.0\\.1:${port}\\b`),
10_000,
20_000,
);
proc.kill("SIGTERM");