include error in the fail msg

This commit is contained in:
Minhan Xia 2016-04-07 15:42:21 -07:00
parent 75b01662e6
commit 0174455111

View File

@ -399,7 +399,7 @@ var _ = KubeDescribe("Services", func() {
cmd := fmt.Sprintf(`for i in $(seq 1 300); do if ss -ant46 'sport = :%d' | grep ^LISTEN; then exit 0; fi; sleep 1; done; exit 1`, nodePort)
stdout, err := RunHostCmd(hostExec.Namespace, hostExec.Name, cmd)
if err != nil {
Failf("expected node port %d to be in use, stdout: %v", nodePort, stdout)
Failf("expected node port %d to be in use, stdout: %v. err: %v", nodePort, stdout, err)
}
})