New ๐ŸŒŠ wave for @helm

Commit 808c3240

808c3240fb04Merged

Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

fix tests

Details

Commit
808c3240fb04
Parent
b6ee151586d6

pkg/release/plan_test.gomodifiedView file

@@ -169,7 +169,11 @@
169169 }
170170 for _, tt := range tests {
171171 t.Run(tt.name, func(t *testing.T) {
172- if gotPlan := Plan(tt.args.tags, releases, tt.args.enableDependencies); !reflect.DeepEqual(gotPlan, tt.wantPlan) {
172+ gotPlan := Plan(tt.args.tags, releases, tt.args.enableDependencies)
173+ if len(gotPlan) == 0 && len(tt.wantPlan) == 0 {
174+ return
175+ }
176+ if !reflect.DeepEqual(gotPlan, tt.wantPlan) {
173177 t.Errorf("Plan() = %v, want %v", gotPlan, tt.wantPlan)
174178 }
175179 })