it("builds ordered hints for mixed listener kinds and multiplicity", () => {
expect(
buildPortHints(
[
{ commandLine: "node dist/index.js openclaw gateway" },
{ commandLine: "ssh -N -L 18789:127.0.0.1:18789" },
{ commandLine: "python -m http.server 18789" },
], 18789,
),
).toEqual([
expect.stringContaining("Gateway already running locally."), "SSH tunnel already bound to this port. Close the tunnel or use a different local port in -L.", "Another process is listening on this port.",
expect.stringContaining("Multiple listeners detected"),
]);
expect(buildPortHints([], 18789)).toEqual([]);
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.