Use t.Fatalf instead
This commit is contained in:
@@ -297,14 +297,12 @@ func TestGenerateService(t *testing.T) {
|
||||
body := objBody(codec, &test.service)
|
||||
data, err := ioutil.ReadAll(req.Body)
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
t.FailNow()
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
defer req.Body.Close()
|
||||
svc := &api.Service{}
|
||||
if err := runtime.DecodeInto(codec, data, svc); err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
t.FailNow()
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
// Copy things that are defaulted by the system
|
||||
test.service.Annotations = svc.Annotations
|
||||
|
||||
Reference in New Issue
Block a user