Add a Failf utility function for 'Fail(fmt.Sprintf())' and convert one file

This commit is contained in:
Zach Loafman
2015-02-09 17:02:11 -08:00
parent 251bb585bd
commit 6b3746896f
2 changed files with 13 additions and 10 deletions

View File

@@ -44,6 +44,10 @@ func Logf(format string, a ...interface{}) {
fmt.Fprintf(GinkgoWriter, "INFO: "+format+"\n", a...)
}
func Failf(format string, a ...interface{}) {
Fail(fmt.Sprintf(format, a...))
}
func waitForPodRunning(c *client.Client, id string, tryFor time.Duration) error {
trySecs := int(tryFor.Seconds())
for i := 0; i <= trySecs; i += 5 {