diff --git a/test/e2e_node/util.go b/test/e2e_node/util.go index cd663be42eb..a7b636cd164 100644 --- a/test/e2e_node/util.go +++ b/test/e2e_node/util.go @@ -378,7 +378,7 @@ func findRunningKubletServiceName() string { framework.ExpectNoError(err) regex := regexp.MustCompile("(kubelet-\\w+)") matches := regex.FindStringSubmatch(string(stdout)) - framework.ExpectNotEqual(len(matches), 0) + framework.ExpectNotEqual(len(matches), 0, "Found more than one kubelet service running: %q", stdout) kubeletServiceName := matches[0] framework.Logf("Get running kubelet with systemctl: %v, %v", string(stdout), kubeletServiceName) return kubeletServiceName