Files
ThothII/tools/tht/internal/compose/process_windows_test.go
T

18 lines
394 B
Go

//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)
}
}