@@ -103,7 +103,7 @@ func TestNewClusterScope(t *testing.T) {
103103 },
104104 },
105105 }
106- azureCluster .Default (context .TODO (), nil )
106+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
107107
108108 fakeIdentity := & infrav1.AzureClusterIdentity {
109109 Spec : infrav1.AzureClusterIdentitySpec {
@@ -230,7 +230,7 @@ func TestAPIServerHost(t *testing.T) {
230230 tc .azureCluster .ObjectMeta = metav1.ObjectMeta {
231231 Name : cluster .Name ,
232232 }
233- tc .azureCluster .Default (context .TODO (), nil )
233+ g . Expect ( tc .azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
234234
235235 clusterScope := & ClusterScope {
236236 Cluster : cluster ,
@@ -275,7 +275,7 @@ func TestGettingSecurityRules(t *testing.T) {
275275 },
276276 },
277277 }
278- azureCluster .Default (context .TODO (), nil )
278+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
279279
280280 clusterScope := & ClusterScope {
281281 Cluster : cluster ,
@@ -2161,7 +2161,7 @@ func TestOutboundLBName(t *testing.T) {
21612161 azureCluster .Spec .NetworkSpec .NodeOutboundLB = tc .nodeOutboundLB
21622162 }
21632163
2164- azureCluster .Default (context .TODO (), nil )
2164+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
21652165
21662166 clusterScope := & ClusterScope {
21672167 AzureCluster : azureCluster ,
@@ -2275,7 +2275,7 @@ func TestBackendPoolName(t *testing.T) {
22752275 },
22762276 }
22772277
2278- azureCluster .Default (context .TODO (), nil )
2278+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
22792279
22802280 if tc .customAPIServerBackendPoolName != "" {
22812281 azureCluster .Spec .NetworkSpec .APIServerLB .BackendPool .Name = tc .customAPIServerBackendPoolName
@@ -2388,7 +2388,7 @@ func TestOutboundPoolName(t *testing.T) {
23882388 }
23892389 }
23902390
2391- azureCluster .Default (context .TODO (), nil )
2391+ g . Expect ( azureCluster .Default (context .TODO (), nil )). To ( Succeed () )
23922392
23932393 clusterScope := & ClusterScope {
23942394 AzureCluster : azureCluster ,
0 commit comments