File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
"testing"
5
5
"time"
6
6
7
+ "github.com/google/go-cmp/cmp/cmpopts"
7
8
. "github.com/onsi/gomega"
8
9
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
9
10
"k8s.io/apimachinery/pkg/util/intstr"
@@ -28,7 +29,8 @@ func TestNodePoolToRosaMachinePoolSpec(t *testing.T) {
28
29
},
29
30
UpdateConfig : & expinfrav1.RosaUpdateConfig {
30
31
RollingUpdate : & expinfrav1.RollingUpdate {
31
- MaxSurge : & intstr.IntOrString {IntVal : 3 },
32
+ MaxSurge : ptr .To (intstr .FromInt32 (3 )),
33
+ MaxUnavailable : ptr .To (intstr .FromInt32 (5 )),
32
34
},
33
35
},
34
36
}
@@ -44,5 +46,5 @@ func TestNodePoolToRosaMachinePoolSpec(t *testing.T) {
44
46
45
47
expectedSpec := nodePoolToRosaMachinePoolSpec (nodePoolSpec )
46
48
47
- g .Expect (expectedSpec ).To (Equal ( rosaMachinePoolSpec ))
49
+ g .Expect (rosaMachinePoolSpec ).To (BeComparableTo ( expectedSpec , cmpopts . EquateEmpty () ))
48
50
}
You can’t perform that action at this time.
0 commit comments