Skip to content

Commit cce597e

Browse files
author
Joshua Reed
committed
Cleanup.
1 parent e4ce3b4 commit cce597e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

pkg/cloud/tags_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
. "github.com/onsi/gomega"
2525
)
2626

27-
var _ = Describe("AffinityGroup Unit Tests", func() {
27+
var _ = Describe("Tag Unit Tests", func() {
2828
var ( // Declare shared vars.
2929
mockCtrl *gomock.Controller
3030
// mockClient *cloudstack.CloudStackClient
@@ -88,7 +88,9 @@ var _ = Describe("AffinityGroup Unit Tests", func() {
8888
Skip("Could not connect to ACS instance.")
8989
}
9090
arbitraryTag = &map[string]string{"Arbitrary": "Tag"}
91-
client.GetOrCreateNetwork(cluster)
91+
if err := client.GetOrCreateNetwork(cluster); err != nil {
92+
Skip("Could not find network.")
93+
}
9294
networkId = cluster.Status.NetworkID
9395
})
9496

pkg/mocks/mock_client.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)