Commit a126a0b5 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Extend errors in load test

parent 38a30490
......@@ -2165,12 +2165,16 @@ func DeleteRC(c *client.Client, ns, name string) error {
}
deleteRCTime := time.Now().Sub(startTime)
Logf("Deleting RC %s took: %v", name, deleteRCTime)
if err == nil {
err = waitForRCPodsGone(c, rc)
if err != nil {
return fmt.Errorf("error while stopping RC: %s: %v", name, err)
}
err = waitForRCPodsGone(c, rc)
if err != nil {
return fmt.Errorf("error while deleting RC %s: %v", name, err)
}
terminatePodTime := time.Now().Sub(startTime) - deleteRCTime
Logf("Terminating RC %s pods took: %v", name, terminatePodTime)
return err
return nil
}
// waitForRCPodsGone waits until there are no pods reported under an RC's selector (because the pods
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment