e2e test polishing

Some typo fixes; some clearer messages on failed assertions;
some TODOs on deeper problems.
This commit is contained in:
Justin Santa Barbara
2015-06-16 21:15:11 -04:00
parent 9f60f3ce44
commit 3912ab29d8
3 changed files with 8 additions and 6 deletions

View File

@@ -125,6 +125,7 @@ func testPreStop(c *client.Client, ns string) {
DoRaw(); err != nil {
By(fmt.Sprintf("Error validating prestop: %v", err))
} else {
Logf("Saw: %s", string(body))
state := State{}
err := json.Unmarshal(body, &state)
if err != nil {
@@ -134,7 +135,6 @@ func testPreStop(c *client.Client, ns string) {
if state.Received["prestop"] != 0 {
return true, nil
}
Logf("Saw: %s", string(body))
}
return false, nil
})