Skip to content

Commit

Permalink
E2E test lib: improved logging of not ready nodes.
Browse files Browse the repository at this point in the history
E2E test lib: improved logging of not ready nodes.
  • Loading branch information
jszczepkowski committed Dec 15, 2016
1 parent bb41d77 commit ec17af6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/framework/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ec17af6

Please sign in to comment.