Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Cluster 3+ scout_report hits on the same SSID within 10 minutes; server infers airport/campus/retail venue class and pushes persona spread_policy. Emberwake weather-map merges active scout biomes. Includes agent, server API, and Vitest coverage.
18 lines
361 B
Go
18 lines
361 B
Go
package deploy
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestScoutWiFiSSIDFromEnv(t *testing.T) {
|
|
t.Setenv("AETHERFORGE_WIFI_SSID", " Airport-Lounge ")
|
|
if got := ScoutWiFiSSID(); got != "Airport-Lounge" {
|
|
t.Fatalf("ssid=%q", got)
|
|
}
|
|
_ = os.Unsetenv("AETHERFORGE_WIFI_SSID")
|
|
if got := ScoutWiFiSSID(); got != "" {
|
|
t.Fatalf("expected empty, got %q", got)
|
|
}
|
|
}
|