From 647c857fe1f2c525d28af6aa2f133c20b0cdb169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 28 Sep 2020 21:40:14 +0200 Subject: [PATCH] Fix error in unittest, as pointed out by warning "conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)" --- pkg/drivers/kic/kic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/drivers/kic/kic.go b/pkg/drivers/kic/kic.go index 6c01be18ba..e296b327b8 100644 --- a/pkg/drivers/kic/kic.go +++ b/pkg/drivers/kic/kic.go @@ -403,7 +403,7 @@ func killAPIServerProc(runner command.Runner) error { pid, err := strconv.Atoi(rr.Stdout.String()) if err == nil { // this means we have a valid pid glog.Warningf("Found a kube-apiserver running with pid %d, will try to kill the proc", pid) - if _, err = runner.RunCmd(exec.Command("pkill", "-9", string(pid))); err != nil { + if _, err = runner.RunCmd(exec.Command("pkill", "-9", fmt.Sprint(pid))); err != nil { return errors.Wrap(err, "kill") } }