frontend: try fix TestWhoisConnectionError on darwin

This commit is contained in:
Lan Tian
2025-06-08 22:01:39 -07:00
parent 1b2573d87c
commit 6e5e190d32

View File

@@ -88,7 +88,7 @@ func TestWhoisWithoutServer(t *testing.T) {
}
func TestWhoisConnectionError(t *testing.T) {
setting.whoisServer = "127.0.0.1:0"
setting.whoisServer = "127.0.0.1:1"
result := whois("AS6939")
if !strings.Contains(result, "connect: connection refused") {
t.Errorf("Whois AS6939 without server produced output, got %s", result)