From ec17af655f077f1eea2a84c7c23274e2bce968a8 Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Thu, 15 Dec 2016 18:23:18 +0100 Subject: [PATCH] E2E test lib: improved logging of not ready nodes. E2E test lib: improved logging of not ready nodes. --- test/e2e/framework/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 7540727613f2e..8396499d763db 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -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 }