added stuff to reflect suggestions

pull/15782/head
x7upLime 2023-04-20 20:32:44 +02:00
parent b196ee46af
commit 3d3e6a14e7
3 changed files with 4 additions and 4 deletions

View File

@ -613,7 +613,7 @@ func killProcess(path string) error {
}
klog.Infof("Found %s ...", pidPath)
ppp, err := GetPids(pidPath)
ppp, err := getPids(pidPath)
if err != nil {
return err
}
@ -653,7 +653,7 @@ func killProcess(path string) error {
// It performs an ownership check of the pid,
// before trying to send a sigkill signal to it
func trySigKillProcess(pid int) error {
itDoes, err := doesPIDBelongToMinikube(pid)
itDoes, err := isMinikubeProcess(pid)
if err != nil {
return err
}

View File

@ -269,7 +269,7 @@ func main() {
}
pid := processToKill.Process.Pid
doesPIDBelongToMinikube = func(int) (bool, error) {
isMinikubeProcess = func(int) (bool, error) {
return true, nil
}

View File

@ -285,7 +285,7 @@ func validateMountCmd(ctx context.Context, t *testing.T, profile string) { // no
}
})
t.Run("verify-cleanup", func(t *testing.T) {
t.Run("VerifyCleanup", func(t *testing.T) {
tempDir := t.TempDir()
ctx, cancel := context.WithTimeout(ctx, Minutes(10))