(stdout: string)
| 107 | ].join("\n"); |
| 108 | |
| 109 | const parseSummary = (stdout: string): Record<string, string> => { |
| 110 | const line = stdout.split("\n").find((l) => l.includes("PROBE_SUMMARY")); |
| 111 | if (!line) throw new Error(`no PROBE_SUMMARY in:\n${stdout}`); |
| 112 | const out: Record<string, string> = {}; |
| 113 | for (const tok of line.replace("PROBE_SUMMARY", "").trim().split(/\s+/)) { |
| 114 | const [k, v] = tok.split("="); |
| 115 | if (k) out[k] = v ?? ""; |
| 116 | } |
| 117 | return out; |
| 118 | }; |
| 119 | |
| 120 | it("Cold-start election: N simultaneous clients all attach to one elected daemon", async () => { |
| 121 | if (guestOs() === "windows") { |
no test coverage detected