From b9d5cfe6b82b42502d9131239132aec5c8bb3104 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Fri, 12 Apr 2019 16:00:07 +0200 Subject: [PATCH] minor fix --- pkg/apis/acid.zalan.do/v1/util_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/apis/acid.zalan.do/v1/util_test.go b/pkg/apis/acid.zalan.do/v1/util_test.go index 1988f2527..84a434471 100644 --- a/pkg/apis/acid.zalan.do/v1/util_test.go +++ b/pkg/apis/acid.zalan.do/v1/util_test.go @@ -568,11 +568,14 @@ func TestMarshal(t *testing.T) { err := cluster.UnmarshalJSON(tt.marshal) if err != nil { if tt.err == nil || err.Error() != tt.err.Error() { - t.Errorf("Unmarshal expected error: %v, got: %v", tt.err, err) + t.Errorf("Backwards compatibility unmarshal expected error: %v, got: %v", tt.err, err) } continue } expected, err := json.Marshal(cluster) + if err != nil { + t.Errorf("Backwards compatibility marshal error: %v", err) + } m, err := json.Marshal(tt.out) if err != nil {