@@ -103,7 +103,7 @@ func TestNewClusterScope(t *testing.T) {
103
103
},
104
104
},
105
105
}
106
- azureCluster .Default (context .TODO (), nil )
106
+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
107
107
108
108
fakeIdentity := & infrav1.AzureClusterIdentity {
109
109
Spec : infrav1.AzureClusterIdentitySpec {
@@ -230,7 +230,7 @@ func TestAPIServerHost(t *testing.T) {
230
230
tc .azureCluster .ObjectMeta = metav1.ObjectMeta {
231
231
Name : cluster .Name ,
232
232
}
233
- tc .azureCluster .Default (context .TODO (), nil )
233
+ g . Expect ( tc .azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
234
234
235
235
clusterScope := & ClusterScope {
236
236
Cluster : cluster ,
@@ -275,7 +275,7 @@ func TestGettingSecurityRules(t *testing.T) {
275
275
},
276
276
},
277
277
}
278
- azureCluster .Default (context .TODO (), nil )
278
+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
279
279
280
280
clusterScope := & ClusterScope {
281
281
Cluster : cluster ,
@@ -2161,7 +2161,7 @@ func TestOutboundLBName(t *testing.T) {
2161
2161
azureCluster .Spec .NetworkSpec .NodeOutboundLB = tc .nodeOutboundLB
2162
2162
}
2163
2163
2164
- azureCluster .Default (context .TODO (), nil )
2164
+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
2165
2165
2166
2166
clusterScope := & ClusterScope {
2167
2167
AzureCluster : azureCluster ,
@@ -2275,7 +2275,7 @@ func TestBackendPoolName(t *testing.T) {
2275
2275
},
2276
2276
}
2277
2277
2278
- azureCluster .Default (context .TODO (), nil )
2278
+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
2279
2279
2280
2280
if tc .customAPIServerBackendPoolName != "" {
2281
2281
azureCluster .Spec .NetworkSpec .APIServerLB .BackendPool .Name = tc .customAPIServerBackendPoolName
@@ -2388,7 +2388,7 @@ func TestOutboundPoolName(t *testing.T) {
2388
2388
}
2389
2389
}
2390
2390
2391
- azureCluster .Default (context .TODO (), nil )
2391
+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
2392
2392
2393
2393
clusterScope := & ClusterScope {
2394
2394
AzureCluster : azureCluster ,
0 commit comments