refactor annotations test

pull/2671/head
Kira 8 years ago
parent 51166b423b
commit bf840a8460

@ -92,12 +92,12 @@ func verifyChartfile(t *testing.T, f *chart.Metadata, name string) {
t.Fatalf("Unexpected annotations") t.Fatalf("Unexpected annotations")
} }
if value := f.Annotations["extrakey"]; value != "extravalue" { if want, got := "extravalue", f.Annotations["extrakey"]; want != got {
t.Errorf("Expected extravalue, but got %s", value) t.Errorf("Want %q, but got %q", want, got)
} }
if value := f.Annotations["anotherkey"]; value != "anothervalue" { if want, got := "anothervalue", f.Annotations["anotherkey"]; want != got {
t.Errorf("Expected anotherkey, but got %s", value) t.Errorf("Want %q, but got %q", want, got)
} }
kk := []string{"frobnitz", "sprocket", "dodad"} kk := []string{"frobnitz", "sprocket", "dodad"}

Loading…
Cancel
Save