Files
AetherForge/agent/deploy/scout_wifi_test.go
AetherForge bbab38f8e1
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Add scout constellation mode for APK venue persona packs.
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.
2026-06-07 09:18:58 -07:00

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)
}
}