Release 3.8.2.11: idle rev-cache, port-safe Connect, single-instance tray UX.
Faster unchanged polls; orphan-core cleanup on listen ports; clearer busy-port errors; cores only from binDir; incremental server list; CSP without Google Fonts; single-instance activates existing window; close-to-tray without kill-others or balloon. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,6 +32,30 @@ func TestPingProfileEmpty(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSplitHostPort(t *testing.T) {
|
||||
h, p := splitHostPort("example.com:8443", "443")
|
||||
if h != "example.com" || p != "8443" {
|
||||
t.Fatalf("%s %s", h, p)
|
||||
}
|
||||
h, p = splitHostPort("example.com", "443")
|
||||
if h != "example.com" || p != "443" {
|
||||
t.Fatalf("%s %s", h, p)
|
||||
}
|
||||
h, p = splitHostPort("[2001:db8::1]:443", "80")
|
||||
if h != "2001:db8::1" || p != "443" {
|
||||
t.Fatalf("%s %s", h, p)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPingHostEmpty(t *testing.T) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
|
||||
defer cancel()
|
||||
r := PingHost(ctx, "x", config.ProtocolNaive, "")
|
||||
if r.OK || r.Error == "" {
|
||||
t.Fatalf("%+v", r)
|
||||
}
|
||||
}
|
||||
|
||||
func TestProbeUDPSoftOKWhenSilent(t *testing.T) {
|
||||
pc, err := net.ListenPacket("udp", "127.0.0.1:0")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user