fix(auth): harden interactive diagnostic lifecycle

This commit is contained in:
2026-08-17 17:57:10 +02:00
parent ef244ab56d
commit af16464e68
9 changed files with 576 additions and 59 deletions
@@ -0,0 +1,17 @@
//go:build windows
package compose
import (
"context"
"reflect"
"testing"
)
func TestWindowsTreeKillCommandUsesExactPIDArgumentArray(t *testing.T) {
command := windowsTreeKillCommand(context.Background(), 4242)
want := []string{"taskkill.exe", "/PID", "4242", "/T", "/F"}
if !reflect.DeepEqual(command.Args, want) {
t.Fatalf("taskkill args = %#v, want %#v", command.Args, want)
}
}