From 91a6ee569526e8f465822adb90697d055cd7bc02 Mon Sep 17 00:00:00 2001 From: 26zl <143036376+26zl@users.noreply.github.com> Date: Sat, 26 Sep 2026 18:52:44 +0200 Subject: [PATCH] use a neutral city in the weather probe The tests only need any city that the weather service resolves; the one used so far was the author's. --- tests/ci-functional.ps1 | 2 +- tests/rawhunt.ps1 | 2 +- tests/test.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ci-functional.ps1 b/tests/ci-functional.ps1 index a5e93d8..26857a9 100644 --- a/tests/ci-functional.ps1 +++ b/tests/ci-functional.ps1 @@ -752,7 +752,7 @@ Invoke-TestCase -Name 'Execute full command matrix' -Code { Invoke-CommandProbe -Command 'env' -Code { env 'PATH' | Out-Null } Invoke-CommandProbe -Command 'svc' -Code { svc -Count 1 | Out-Null } Invoke-CommandProbe -Command 'eventlog' -Code { eventlog 1 | Out-Null } - Invoke-CommandProbe -Command 'weather' -Code { weather 'Oslo' | Out-Null } + Invoke-CommandProbe -Command 'weather' -Code { weather 'London' | Out-Null } Invoke-CommandProbe -Command 'speedtest' -SkipReason 'Long-running network benchmark' Invoke-CommandProbe -Command 'wifipass' -SkipReason 'Requires WLAN profile context and often elevation' Invoke-CommandProbe -Command 'hosts' -SkipReason 'Opens elevated editor UI' diff --git a/tests/rawhunt.ps1 b/tests/rawhunt.ps1 index 18b45b6..ee142ad 100644 --- a/tests/rawhunt.ps1 +++ b/tests/rawhunt.ps1 @@ -277,7 +277,7 @@ T 'tlscert' { tlscert "google.com" } T 'portscan' { portscan "localhost" -Ports @(80, 443, 3389) } T 'ipinfo' { ipinfo "8.8.8.8" } T 'whois' { whois "google.com" } -T 'weather' { weather "Oslo" } +T 'weather' { weather "London" } T 'http GET' { $r = http "https://httpbin.org/get"; if (-not $r) { throw "no response" } } T 'http POST' { $r = http "https://httpbin.org/post" -Method POST -Body '{"test":true}'; if (-not $r) { throw "no response" } } T 'hb' { hb $tf -Confirm:$false } # LIVE NETWORK: real upload to bin.christitus.com (rawhunt exercises real I/O by design) diff --git a/tests/test.ps1 b/tests/test.ps1 index ea82fab..5f5ce57 100644 --- a/tests/test.ps1 +++ b/tests/test.ps1 @@ -1315,7 +1315,7 @@ T 'nslook' { nslook "google.com" } T 'env' { env "PATH" } T 'svc' { svc "idle" -Count 1 } T 'eventlog' { eventlog 1 } -T 'weather' { weather "Oslo" } +T 'weather' { weather "London" } T 'speedtest' $null 'takes 30s+ download' T 'wifipass' $null 'requires admin/netsh' T 'hosts' $null 'opens elevated editor'