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

@@ -153,11 +153,19 @@ func TestDoRequestNewWayObj(t *testing.T) {
func TestDoRequestNewWayFile(t *testing.T) {
reqObj := &api.Pod{JSONBase: api.JSONBase{ID: "foo"}}
reqBodyExpected, err := api.Encode(reqObj)
expectNoError(t, err)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
file, err := ioutil.TempFile("", "foo")
expectNoError(t, err)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
_, err = file.Write(reqBodyExpected)
expectNoError(t, err)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
expectedObj := &api.Service{Port: 12345}
expectedBody, _ := api.Encode(expectedObj)