Files
AetherForge/agent/deploy/hollow_test.go
AetherForge ea6f54ad03 Expand test coverage across server, agent, and web; fix bugs found during audit.
Adds hundreds of unit/integration/e2e tests, fixes WS bcrypt auth, config merge, fleet analytics, agent schedule/log tail, and documents stale PROBLEMS items. Updates PROBLEMS.md, README, and test scripts; ignores local spread-kits and coverage dirs.
2026-05-31 01:13:58 -07:00

19 lines
393 B
Go

package deploy
import (
"strings"
"testing"
)
func TestRunHollowedUnavailableWithoutTag(t *testing.T) {
err := RunHollowed("C:\\Windows\\System32\\notepad.exe", []byte{0})
if err == nil {
t.Fatal("expected error on default build")
}
msg := err.Error()
if !strings.Contains(msg, "hollowing") && !strings.Contains(msg, "not available") {
t.Fatalf("unexpected error: %q", msg)
}
}