mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #24001 from freehan/kubenet
include error in the fail msg
This commit is contained in:
commit
cd85b06465
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user