Skip to content

Commit 6a66d3b

Browse files
committed
fixup arbitrary test
1 parent 0ec3061 commit 6a66d3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controlplane/kubeadm/internal/controllers/inplace_canupdatemachine_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"fmt"
2424
"testing"
2525

26+
"github.com/google/go-cmp/cmp"
2627
. "github.com/onsi/gomega"
2728
"github.com/pkg/errors"
2829
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -311,7 +312,7 @@ func Test_canExtensionsUpdateMachine(t *testing.T) {
311312
+ Version: "v1.31.0",
312313
ProviderID: "",
313314
FailureDomain: "",
314-
... // 3 identical fields
315+
... // 4 identical fields
315316
},
316317
Status: {},
317318
}`,
@@ -464,7 +465,7 @@ func Test_canExtensionsUpdateMachine(t *testing.T) {
464465
g.Expect(err).ToNot(HaveOccurred())
465466
}
466467
g.Expect(canUpdateMachine).To(Equal(tt.wantCanUpdateMachine))
467-
g.Expect(reasons).To(Equal(tt.wantReasons))
468+
g.Expect(reasons).To(BeEquivalentTo(tt.wantReasons), cmp.Diff(reasons, tt.wantReasons))
468469
})
469470
}
470471
}

0 commit comments

Comments
 (0)