mirror of https://github.com/k3s-io/k3s
E2E test lib: improved logging of not ready nodes.
E2E test lib: improved logging of not ready nodes.pull/6/head
parent
bb41d7706f
commit
ec17af655f
|
@ -4011,7 +4011,11 @@ func AllNodesReady(c clientset.Interface, timeout time.Duration) error {
|
|||
}
|
||||
|
||||
if len(notReady) > TestContext.AllowedNotReadyNodes || !allowedNotReadyReasons(notReady) {
|
||||
return fmt.Errorf("Not ready nodes: %#v", notReady)
|
||||
msg := ""
|
||||
for _, node := range notReady {
|
||||
msg = fmt.Sprintf("%s, %s", msg, node.Name)
|
||||
}
|
||||
return fmt.Errorf("Not ready nodes: %#v", msg)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue