Remove expectNoError from client, kubelet, and util

This commit is contained in:
Clayton Coleman
2014-08-03 19:59:47 -04:00
parent 2282f9ce3a
commit f7149926c0
5 changed files with 118 additions and 64 deletions

View File

@@ -47,7 +47,10 @@ func TestMakeJSONString(t *testing.T) {
body := MakeJSONString(pod)
expectedBody, err := json.Marshal(pod)
expectNoError(t, err)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
if string(expectedBody) != body {
t.Errorf("JSON doesn't match. Expected %s, saw %s", expectedBody, body)
}