@@ -189,7 +189,6 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
189
189
return reconSvc
190
190
},
191
191
Recorder : recorder ,
192
- Client : testEnv .Client ,
193
192
}
194
193
}
195
194
@@ -1030,7 +1029,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
1030
1029
Name : "name" ,
1031
1030
}, nil )
1032
1031
1033
- err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1032
+ _ , err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1034
1033
g .Expect (err ).To (Succeed ())
1035
1034
})
1036
1035
t .Run ("New lifecycle hook is added" , func (t * testing.T ) {
@@ -1066,7 +1065,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
1066
1065
// No changes, so there must not be an ASG update!
1067
1066
asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
1068
1067
1069
- err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1068
+ _ , err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1070
1069
g .Expect (err ).To (Succeed ())
1071
1070
})
1072
1071
t .Run ("Lifecycle hook to remove" , func (t * testing.T ) {
@@ -1104,7 +1103,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
1104
1103
// No changes, so there must not be an ASG update!
1105
1104
asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
1106
1105
1107
- err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1106
+ _ , err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1108
1107
g .Expect (err ).To (Succeed ())
1109
1108
})
1110
1109
t .Run ("One to add, one to remove" , func (t * testing.T ) {
@@ -1148,7 +1147,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
1148
1147
// No changes, so there must not be an ASG update!
1149
1148
asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
1150
1149
1151
- err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1150
+ _ , err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1152
1151
g .Expect (err ).To (Succeed ())
1153
1152
})
1154
1153
t .Run ("Update hook" , func (t * testing.T ) {
@@ -1188,7 +1187,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
1188
1187
// No changes, so there must not be an ASG update!
1189
1188
asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
1190
1189
1191
- err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1190
+ _ , err := reconciler .reconcileNormal (context .Background (), ms , cs , cs )
1192
1191
g .Expect (err ).To (Succeed ())
1193
1192
})
1194
1193
})
0 commit comments