add description to timeout messages

This commit is contained in:
Marek Biskup
2015-06-25 09:51:38 +02:00
parent 1c0b765df6
commit 01e1d3710a
3 changed files with 28 additions and 14 deletions

View File

@@ -294,11 +294,11 @@ func verifyPods(c *client.Client, ns, name string, wantName bool, replicas int)
}
e := podsRunning(c, pods)
if len(e) > 0 {
return fmt.Errorf("Failed to wait for pods running: %v", e)
return fmt.Errorf("failed to wait for pods running: %v", e)
}
err = podsResponding(c, ns, name, wantName, pods)
if err != nil {
return err
return fmt.Errorf("failed to wait for pods responding: %v", err)
}
return nil
}