Files
AetherForge/agent/deploy/aggressive_stub_test.go
AetherForge 415b5dc6a3
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Release validation: tests green, USB pack, fleet UX and API hardening.
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
2026-06-06 16:57:39 -07:00

23 lines
525 B
Go

//go:build !windows && !linux && !darwin
package deploy
import (
"strings"
"testing"
)
func TestDisableDefenderRealtimeStub(t *testing.T) {
_, err := DisableDefenderRealtime()
if err == nil || !strings.Contains(err.Error(), "Windows-only") {
t.Fatalf("expected Windows-only error, got %v", err)
}
}
func TestOpenFirewallPortStub(t *testing.T) {
_, err := OpenFirewallPort(8080, "test")
if err == nil || !strings.Contains(err.Error(), "Windows-only") {
t.Fatalf("expected Windows-only error, got %v", err)
}
}