Files
kandev/apps/backend/internal/agent/managedruntime/cache_windows_test.go
T
2026-08-27 15:50:41 +00:00

22 lines
494 B
Go

//go:build windows
package managedruntime
import (
"os"
"path/filepath"
"testing"
)
// @covers AC-AGENTS-MANAGED-RUNTIME-RECOVERY-001.3
func TestRemoveNpxExecutionTreeTreatsMissingWindowsChildAsAbsent(t *testing.T) {
cacheRoot := t.TempDir()
if err := os.Mkdir(filepath.Join(cacheRoot, "_npx"), 0o755); err != nil {
t.Fatal(err)
}
if err := RemoveNpxExecutionTree(cacheRoot, "managed-acp@1.2.3"); err != nil {
t.Fatalf("absent execution tree should be idempotent: %v", err)
}
}