Merge pull request #202 from shawnps/patch-5

pass err to Fatalf
pull/204/head
vaikas-google 9 years ago
commit 397bc6e9b0

@ -143,7 +143,7 @@ func testConversion(t *testing.T, object []byte, expected []byte) {
result, err := ParseKubernetesObject(object) result, err := ParseKubernetesObject(object)
if err != nil { if err != nil {
t.Fatalf("ParseKubernetesObject failed: %v") t.Fatalf("ParseKubernetesObject failed: %v", err)
} }
// Since the object name gets created on the fly, we have to rejigger the returned object // Since the object name gets created on the fly, we have to rejigger the returned object
// slightly to make sure the DeepEqual works as expected. // slightly to make sure the DeepEqual works as expected.

Loading…
Cancel
Save