Skip to content

Commit 2df5a30

Browse files
committed
[Azure] fix publicIP test cases
1 parent c70e3e9 commit 2df5a30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

staging/src/k8s.io/legacy-cloud-providers/azure/azure_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,11 +1727,11 @@ func validatePublicIP(t *testing.T, publicIP *network.PublicIPAddress, service *
17271727

17281728
// For external service
17291729
if publicIP == nil {
1730-
t.Errorf("Expected publicIP resource exists, when it is not an internal service")
1730+
t.Fatal("Expected publicIP resource exists, when it is not an internal service")
17311731
}
17321732

17331733
if publicIP.Tags == nil || publicIP.Tags[serviceTagKey] == nil {
1734-
t.Errorf("Expected publicIP resource has tags[%s]", serviceTagKey)
1734+
t.Fatalf("Expected publicIP resource does not have tags[%s]", serviceTagKey)
17351735
}
17361736

17371737
serviceName := getServiceName(service)
@@ -1740,7 +1740,7 @@ func validatePublicIP(t *testing.T, publicIP *network.PublicIPAddress, service *
17401740
}
17411741

17421742
if publicIP.Tags[clusterNameKey] == nil {
1743-
t.Errorf("Expected publicIP resource has tags[%s]", clusterNameKey)
1743+
t.Fatalf("Expected publicIP resource does not have tags[%s]", clusterNameKey)
17441744
}
17451745

17461746
if *(publicIP.Tags[clusterNameKey]) != testClusterName {

0 commit comments

Comments
 (0)