fix(auth): harden interactive diagnostic lifecycle
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user