added stuff to reflect suggestions
parent
b196ee46af
commit
3d3e6a14e7
|
@ -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
|
||||
}
|
||||
|
|
|
@ -269,7 +269,7 @@ func main() {
|
|||
}
|
||||
pid := processToKill.Process.Pid
|
||||
|
||||
doesPIDBelongToMinikube = func(int) (bool, error) {
|
||||
isMinikubeProcess = func(int) (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue