You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 13f0e02
Browse filesBrowse the repository at this point in the historyBrowse files
it("rejects an occupied managed endpoint with actionable port guidance",async()=>{
58
+
constlistener=createServer();
59
+
awaitnewPromise<void>((resolve,reject)=>{
60
+
listener.once("error",reject);
61
+
listener.listen(0,"127.0.0.1",resolve);
62
+
});
63
+
constaddress=listener.address();
64
+
if(!address||typeofaddress==="string"){
65
+
thrownewError("Expected a TCP listener address");
66
+
}
67
+
68
+
try{
69
+
awaitexpect(
70
+
assertSignalDaemonEndpointAvailable({
71
+
httpHost: "127.0.0.1",
72
+
httpPort: address.port,
73
+
}),
74
+
).rejects.toThrow(
75
+
`Signal managed native endpoint 127.0.0.1:${address.port} is unavailable: Port ${address.port} is already in use. Stop the conflicting service, configure this Signal account with a different transport.httpPort, or use external-native for an intentionally operator-managed daemon.`,
`Signal managed native endpoint ${endpoint} is unavailable: ${formatErrorMessage(error)} Stop the conflicting service, configure this Signal account with a different transport.httpPort, or use external-native for an intentionally operator-managed daemon.`,
0 commit comments